diff options
author | Eli Linden <eli@lindenlab.com> | 2010-03-03 12:10:00 -0800 |
---|---|---|
committer | Eli Linden <eli@lindenlab.com> | 2010-03-03 12:10:00 -0800 |
commit | e47d107e2f7c4793f0685aa37749629f7d91aef0 (patch) | |
tree | 740e36a63f6576bdf5c180ca8b59796ae5f1cf49 /indra/newview/llpanelclassified.cpp | |
parent | ece36d5df8d0a7fb4c71ec50a0bac49a5c6fbacb (diff) | |
parent | 2ecc98cb2f11b03224990d498d20cff8bcfb0716 (diff) |
Merge
Diffstat (limited to 'indra/newview/llpanelclassified.cpp')
-rw-r--r-- | indra/newview/llpanelclassified.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/indra/newview/llpanelclassified.cpp b/indra/newview/llpanelclassified.cpp index 836331b44b..7cf27d9141 100644 --- a/indra/newview/llpanelclassified.cpp +++ b/indra/newview/llpanelclassified.cpp @@ -1290,18 +1290,11 @@ void LLPanelClassifiedInfo::resetData() void LLPanelClassifiedInfo::resetControls() { - if(getAvatarId() == gAgent.getID()) - { - childSetEnabled("edit_btn", TRUE); - childSetVisible("edit_btn", TRUE); - childSetVisible("auto_renew", TRUE); - } - else - { - childSetEnabled("edit_btn", FALSE); - childSetVisible("edit_btn", FALSE); - childSetVisible("auto_renew", FALSE); - } + bool is_self = getAvatarId() == gAgent.getID(); + + childSetEnabled("edit_btn", is_self); + childSetVisible("edit_btn", is_self); + childSetVisible("price_layout_panel", is_self); } void LLPanelClassifiedInfo::setClassifiedName(const std::string& name) |