aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgroupgeneral.cpp47
1 files changed, 33 insertions, 14 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp
index 8d30f09..1db306d 100644
--- a/linden/indra/newview/llpanelgroupgeneral.cpp
+++ b/linden/indra/newview/llpanelgroupgeneral.cpp
@@ -187,6 +187,7 @@ BOOL LLPanelGroupGeneral::postBuild()
187 { 187 {
188 mSpinEnrollmentFee->setCommitCallback(onCommitAny); 188 mSpinEnrollmentFee->setCommitCallback(onCommitAny);
189 mSpinEnrollmentFee->setCallbackUserData(this); 189 mSpinEnrollmentFee->setCallbackUserData(this);
190 mSpinEnrollmentFee->setPrecision(0);
190 } 191 }
191 192
192 BOOL accept_notices = FALSE; 193 BOOL accept_notices = FALSE;
@@ -484,6 +485,8 @@ bool LLPanelGroupGeneral::apply(LLString& mesg)
484 else 485 else
485 { 486 {
486 gdatap->mMaturePublish = FALSE; 487 gdatap->mMaturePublish = FALSE;
488 // Set to the used value, and reset initial value used for isdirty check
489 mSpinEnrollmentFee->set( (F32)gdatap->mMembershipFee );
487 } 490 }
488 } 491 }
489 if (mCtrlShowInGroupList) gdatap->mShowInList = mCtrlShowInGroupList->get(); 492 if (mCtrlShowInGroupList) gdatap->mShowInList = mCtrlShowInGroupList->get();
@@ -509,6 +512,8 @@ bool LLPanelGroupGeneral::apply(LLString& mesg)
509 mChanged = FALSE; 512 mChanged = FALSE;
510 notifyObservers(); 513 notifyObservers();
511 514
515 notifyObservers();
516
512 return true; 517 return true;
513} 518}
514 519
@@ -811,21 +816,35 @@ void LLPanelGroupGeneral::updateMembers()
811 } 816 }
812} 817}
813 818
814
815void LLPanelGroupGeneral::updateChanged() 819void LLPanelGroupGeneral::updateChanged()
816{ 820{
821 // List all the controls we want to check for changes...
822 LLUICtrl *check_list[] =
823 {
824 mGroupNameEditor,
825 mGroupName,
826 mFounderName,
827 mInsignia,
828 mEditCharter,
829 mCtrlShowInGroupList,
830 mCtrlPublishOnWeb, // To fix after merge: Erase this line, and uncomment the mCtrlListGroup line. -- Soft
831 mCtrlMature,
832 mCtrlOpenEnrollment,
833 mCtrlEnrollmentFee,
834 mSpinEnrollmentFee,
835 mCtrlReceiveNotices,
836// mCtrlListGroup, // To fix after merge: See above comment -- Soft
837 mComboActiveTitle
838 };
839
817 mChanged = FALSE; 840 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 841
842 for( int i= 0; i< sizeof(check_list)/sizeof(*check_list); i++ )
843 {
844 if( check_list[i] && check_list[i]->isDirty() )
845 {
846 mChanged = TRUE;
847 break;
848 }
849 }
850}