summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelclassified.cpp
diff options
context:
space:
mode:
authorangela <angela@lindenlab.com>2010-03-04 10:35:51 +0800
committerangela <angela@lindenlab.com>2010-03-04 10:35:51 +0800
commitf9815a6d13074cc3d1adda5aa41171f855097977 (patch)
treee960736102bb2a4f9cd46a6cbf7e04d4e0f0b187 /indra/newview/llpanelclassified.cpp
parent06b5cd096f9125c8c9b472487e841c19f5e62015 (diff)
parent2b5ea03a40c7bdd5962dc25c807b4ce5abb49bde (diff)
merge
Diffstat (limited to 'indra/newview/llpanelclassified.cpp')
-rw-r--r--indra/newview/llpanelclassified.cpp17
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)