summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Guslisty <pguslisty@productengine.com>2010-03-03 11:17:41 +0200
committerPaul Guslisty <pguslisty@productengine.com>2010-03-03 11:17:41 +0200
commit5d2b69207ade17a6502a72f05d5e59d5939f14ef (patch)
tree912f634e491a46411d1c6c0e270f70bcbd382c4b
parent616a40bffa1759e946a71f4e885540bc6419ee58 (diff)
parent9676448291e3faa7bbe476549b79a083945eaa7b (diff)
merge
--HG-- branch : product-engine
-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..68691a1408 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("auto_renew", is_self);
}
void LLPanelClassifiedInfo::setClassifiedName(const std::string& name)