diff options
author | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2010-01-06 12:25:23 -0500 |
---|---|---|
committer | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2010-01-06 12:25:23 -0500 |
commit | a84beb2a4373d71b0ff171883af9645f9a98e26f (patch) | |
tree | cdaccc0095a2666ae78c2e1dfd49a2a3f653c873 /indra/newview/llsidepaneltaskinfo.cpp | |
parent | c55cb905fbe0964b08725291377d0e4c181b33a9 (diff) |
EXT-3692: Buy & Pay buttons on side panel object profile now only enabled when you can pay or buy the object.
-Reviewed by nyx
Diffstat (limited to 'indra/newview/llsidepaneltaskinfo.cpp')
-rw-r--r-- | indra/newview/llsidepaneltaskinfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llsidepaneltaskinfo.cpp b/indra/newview/llsidepaneltaskinfo.cpp index 50cec3184d..0b8f66c5f3 100644 --- a/indra/newview/llsidepaneltaskinfo.cpp +++ b/indra/newview/llsidepaneltaskinfo.cpp @@ -215,6 +215,10 @@ void LLSidepanelTaskInfo::disableAll() childSetVisible("E:", FALSE); childSetVisible("N:", FALSE); childSetVisible("F:", FALSE); + + mOpenBtn->setEnabled(FALSE); + mPayBtn->setEnabled(FALSE); + mBuyBtn->setEnabled(FALSE); } void LLSidepanelTaskInfo::refresh() @@ -1119,6 +1123,8 @@ void LLSidepanelTaskInfo::updateVerbs() */ mOpenBtn->setEnabled(enable_object_open()); + mPayBtn->setEnabled(enable_pay_object()); + mBuyBtn->setEnabled(enable_buy_object()); } void LLSidepanelTaskInfo::onOpenButtonClicked() |