diff options
author | Jacek Antonelli | 2008-08-15 23:45:29 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:29 -0500 |
commit | 7bdb4845afdd157f95281293803567090e3f992a (patch) | |
tree | fbcada1c227d7407f9f37ccba360bfe6326d9c5e /linden/indra/newview/llpanelclassified.cpp | |
parent | Second Life viewer sources 1.19.0.0 (diff) | |
download | meta-impy-7bdb4845afdd157f95281293803567090e3f992a.zip meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.gz meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.bz2 meta-impy-7bdb4845afdd157f95281293803567090e3f992a.tar.xz |
Second Life viewer sources 1.19.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelclassified.cpp | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/linden/indra/newview/llpanelclassified.cpp b/linden/indra/newview/llpanelclassified.cpp index 811527e..e8d6b0d 100644 --- a/linden/indra/newview/llpanelclassified.cpp +++ b/linden/indra/newview/llpanelclassified.cpp | |||
@@ -676,6 +676,8 @@ void LLPanelClassified::processClassifiedInfoReply(LLMessageSystem *msg, void ** | |||
676 | self->mPaidFor = TRUE; | 676 | self->mPaidFor = TRUE; |
677 | 677 | ||
678 | self->mUpdateBtn->setLabel(self->childGetText("update_txt")); | 678 | self->mUpdateBtn->setLabel(self->childGetText("update_txt")); |
679 | |||
680 | self->resetDirty(); | ||
679 | } | 681 | } |
680 | } | 682 | } |
681 | 683 | ||
@@ -823,6 +825,25 @@ void LLPanelClassified::callbackGotPriceForListing(S32 option, LLString text, vo | |||
823 | 825 | ||
824 | } | 826 | } |
825 | 827 | ||
828 | void LLPanelClassified::resetDirty() | ||
829 | { | ||
830 | // Tell all the widgets to reset their dirty state since the ad was just saved | ||
831 | if (mSnapshotCtrl) | ||
832 | mSnapshotCtrl->resetDirty(); | ||
833 | if (mNameEditor) | ||
834 | mNameEditor->resetDirty(); | ||
835 | if (mDescEditor) | ||
836 | mDescEditor->resetDirty(); | ||
837 | if (mLocationEditor) | ||
838 | mLocationEditor->resetDirty(); | ||
839 | mLocationChanged = false; | ||
840 | if (mCategoryCombo) | ||
841 | mCategoryCombo->resetDirty(); | ||
842 | if (mMatureCheck) | ||
843 | mMatureCheck->resetDirty(); | ||
844 | if (mAutoRenewCheck) | ||
845 | mAutoRenewCheck->resetDirty(); | ||
846 | } | ||
826 | 847 | ||
827 | // invoked from callbackConfirmPublish | 848 | // invoked from callbackConfirmPublish |
828 | void LLPanelClassified::confirmPublish(S32 option) | 849 | void LLPanelClassified::confirmPublish(S32 option) |
@@ -846,22 +867,7 @@ void LLPanelClassified::confirmPublish(S32 option) | |||
846 | tab->setCurrentTabName(mNameEditor->getText()); | 867 | tab->setCurrentTabName(mNameEditor->getText()); |
847 | } | 868 | } |
848 | 869 | ||
849 | // Tell all the widgets to reset their dirty state since the ad was just saved | 870 | resetDirty(); |
850 | if (mSnapshotCtrl) | ||
851 | mSnapshotCtrl->resetDirty(); | ||
852 | if (mNameEditor) | ||
853 | mNameEditor->resetDirty(); | ||
854 | if (mDescEditor) | ||
855 | mDescEditor->resetDirty(); | ||
856 | if (mLocationEditor) | ||
857 | mLocationEditor->resetDirty(); | ||
858 | mLocationChanged = false; | ||
859 | if (mCategoryCombo) | ||
860 | mCategoryCombo->resetDirty(); | ||
861 | if (mMatureCheck) | ||
862 | mMatureCheck->resetDirty(); | ||
863 | if (mAutoRenewCheck) | ||
864 | mAutoRenewCheck->resetDirty(); | ||
865 | } | 871 | } |
866 | 872 | ||
867 | // static | 873 | // static |