diff options
author | simon <none@none> | 2014-02-18 16:41:21 -0800 |
---|---|---|
committer | simon <none@none> | 2014-02-18 16:41:21 -0800 |
commit | 52ce788d0cf77361dc337edaf136f401acd0d4a9 (patch) | |
tree | 10b483a50bb1f3d897ece66d118036201bd74af7 /indra/newview/llpanelgroup.cpp | |
parent | 54ab932884c386950f4f31b9ee63446053c03d59 (diff) | |
parent | a347267cf1c55a3bd57d30117b8aa834623e1d61 (diff) |
Pull in viewer-lion to lock down next release
Diffstat (limited to 'indra/newview/llpanelgroup.cpp')
-rwxr-xr-x | indra/newview/llpanelgroup.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index ae217958f0..a0ca82da46 100755 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -49,6 +49,7 @@ #include "llpanelgroupnotices.h" #include "llpanelgroupgeneral.h" +#include "llpanelgrouproles.h" #include "llaccordionctrltab.h" #include "llaccordionctrl.h" @@ -275,6 +276,7 @@ void LLPanelGroup::onBtnApply(void* user_data) { LLPanelGroup* self = static_cast<LLPanelGroup*>(user_data); self->apply(); + self->refreshData(); } void LLPanelGroup::onBtnGroupCallClicked(void* user_data) @@ -495,6 +497,22 @@ bool LLPanelGroup::apply(LLPanelGroupTab* tab) { //we skip refreshing group after ew manually apply changes since its very annoying //for those who are editing group + + LLPanelGroupRoles * roles_tab = dynamic_cast<LLPanelGroupRoles*>(tab); + if (roles_tab) + { + LLGroupMgr* gmgrp = LLGroupMgr::getInstance(); + LLGroupMgrGroupData* gdatap = gmgrp->getGroupData(roles_tab->getGroupID()); + + // allow refresh only for one specific case: + // there is only one member in group and it is not owner + // it's a wrong situation and need refresh panels from server + if (gdatap && gdatap->isSingleMemberNotOwner()) + { + return true; + } + } + mSkipRefresh = TRUE; return true; } |