aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelgroupgeneral.cpp')
-rw-r--r--linden/indra/newview/llpanelgroupgeneral.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp
index 0888cad..8d30f09 100644
--- a/linden/indra/newview/llpanelgroupgeneral.cpp
+++ b/linden/indra/newview/llpanelgroupgeneral.cpp
@@ -70,7 +70,6 @@ LLPanelGroupGeneral::LLPanelGroupGeneral(const std::string& name,
70 mFounderName(NULL), 70 mFounderName(NULL),
71 mInsignia(NULL), 71 mInsignia(NULL),
72 mEditCharter(NULL), 72 mEditCharter(NULL),
73 mEditName(NULL),
74 mBtnJoinGroup(NULL), 73 mBtnJoinGroup(NULL),
75 mListVisibleMembers(NULL), 74 mListVisibleMembers(NULL),
76 mCtrlShowInGroupList(NULL), 75 mCtrlShowInGroupList(NULL),
@@ -256,7 +255,7 @@ BOOL LLPanelGroupGeneral::postBuild()
256void LLPanelGroupGeneral::onCommitAny(LLUICtrl* ctrl, void* data) 255void LLPanelGroupGeneral::onCommitAny(LLUICtrl* ctrl, void* data)
257{ 256{
258 LLPanelGroupGeneral* self = (LLPanelGroupGeneral*)data; 257 LLPanelGroupGeneral* self = (LLPanelGroupGeneral*)data;
259 self->mChanged = TRUE; 258 self->updateChanged();
260 self->notifyObservers(); 259 self->notifyObservers();
261} 260}
262 261
@@ -811,3 +810,22 @@ void LLPanelGroupGeneral::updateMembers()
811 mListVisibleMembers->setEnabled(FALSE); 810 mListVisibleMembers->setEnabled(FALSE);
812 } 811 }
813} 812}
813
814
815void LLPanelGroupGeneral::updateChanged()
816{
817 mChanged = FALSE;
818 if ( mGroupNameEditor )
819 mChanged = mGroupNameEditor->isDirty();
820 if ( mGroupName )
821 mChanged |= mGroupName->isDirty();
822 if ( mFounderName )
823 mChanged |= mFounderName->isDirty();
824 if ( mInsignia )
825 mChanged |= mInsignia->isDirty();
826 if ( mEditCharter )
827 mChanged |= mEditCharter->isDirty();
828// if ( mCtrlReceiveNotices ) // "Receive group notices" is different, see onReceiveNotices()
829// mChanged |= mCtrlReceiveNotices->isDirty();
830}
831