aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupgeneral.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:07 -0500
committerJacek Antonelli2008-08-15 23:45:07 -0500
commit8465910c79b8e746e04fd581cca2d60399e569b9 (patch)
treef43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/newview/llpanelgroupgeneral.cpp
parentSecond Life viewer sources 1.18.2.1 (diff)
downloadmeta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz
Second Life viewer sources 1.18.3.2-RC
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