summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorYchebotarev ProductEngine <ychebotarev@productengine.com>2010-01-22 15:25:46 +0200
committerYchebotarev ProductEngine <ychebotarev@productengine.com>2010-01-22 15:25:46 +0200
commit682fd146b0978363e6264569c74e018f0cb971fa (patch)
treebbc49c4629368bbb9b2e8774062c2f5958188a21 /indra
parent14bbed35fbaf1362c547c8cd41b19b34c3025a7b (diff)
fix for normal EXT-4554 [BSI] group join now button goes missing after failure to join due to maximum groups
--HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelgroup.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp
index 569d3001bf..c30ef3221d 100644
--- a/indra/newview/llpanelgroup.cpp
+++ b/indra/newview/llpanelgroup.cpp
@@ -356,13 +356,6 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id)
for(std::vector<LLPanelGroupTab* >::iterator it = mTabs.begin();it!=mTabs.end();++it)
(*it)->setGroupID(group_id);
- LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mID);
- if(gdatap)
- {
- childSetValue("group_name", gdatap->mName);
- childSetToolTip("group_name",gdatap->mName);
- }
-
LLButton* button_apply = findChild<LLButton>("btn_apply");
LLButton* button_refresh = findChild<LLButton>("btn_refresh");
LLButton* button_create = findChild<LLButton>("btn_create");
@@ -464,6 +457,17 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id)
}
reposButtons();
+
+ LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mID);
+
+ if(gdatap)
+ {
+ childSetValue("group_name", gdatap->mName);
+ childSetToolTip("group_name",gdatap->mName);
+
+ //group data is already present, call update manually
+ update(GC_ALL);
+ }
}
bool LLPanelGroup::apply(LLPanelGroupTab* tab)