aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelclassified.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:09 -0500
committerJacek Antonelli2008-08-15 23:45:09 -0500
commit0ba912e2fda74d0121fa6b5ee6f978bd664057cb (patch)
tree0fdf72dcdc488cc4ff1a8f2ceeff720850782a05 /linden/indra/newview/llpanelclassified.cpp
parentSecond Life viewer sources 1.18.3.3-RC (diff)
downloadmeta-impy-0ba912e2fda74d0121fa6b5ee6f978bd664057cb.zip
meta-impy-0ba912e2fda74d0121fa6b5ee6f978bd664057cb.tar.gz
meta-impy-0ba912e2fda74d0121fa6b5ee6f978bd664057cb.tar.bz2
meta-impy-0ba912e2fda74d0121fa6b5ee6f978bd664057cb.tar.xz
Second Life viewer sources 1.18.3.4-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelclassified.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelclassified.cpp b/linden/indra/newview/llpanelclassified.cpp
index 5f7bb6e..96adf06 100644
--- a/linden/indra/newview/llpanelclassified.cpp
+++ b/linden/indra/newview/llpanelclassified.cpp
@@ -100,6 +100,7 @@ LLPanelClassified::LLPanelClassified(BOOL in_finder)
100 mInFinder(in_finder), 100 mInFinder(in_finder),
101 mDirty(false), 101 mDirty(false),
102 mForceClose(false), 102 mForceClose(false),
103 mLocationChanged(false),
103 mClassifiedID(), 104 mClassifiedID(),
104 mCreatorID(), 105 mCreatorID(),
105 mPriceForListing(0), 106 mPriceForListing(0),
@@ -575,6 +576,7 @@ void LLPanelClassified::processClassifiedInfoReply(LLMessageSystem *msg, void **
575 self->mDescEditor->setText(desc); 576 self->mDescEditor->setText(desc);
576 self->mSnapshotCtrl->setImageAssetID(snapshot_id); 577 self->mSnapshotCtrl->setImageAssetID(snapshot_id);
577 self->mLocationEditor->setText(location_text); 578 self->mLocationEditor->setText(location_text);
579 self->mLocationChanged = false;
578 580
579 self->mCategoryCombo->setCurrentByIndex(category - 1); 581 self->mCategoryCombo->setCurrentByIndex(category - 1);
580 self->mMatureCheck->set(mature); 582 self->mMatureCheck->set(mature);
@@ -765,6 +767,7 @@ void LLPanelClassified::confirmPublish(S32 option)
765 mNameEditor->resetDirty(); 767 mNameEditor->resetDirty();
766 mDescEditor->resetDirty(); 768 mDescEditor->resetDirty();
767 mLocationEditor->resetDirty(); 769 mLocationEditor->resetDirty();
770 mLocationChanged = false;
768 mCategoryCombo->resetDirty(); 771 mCategoryCombo->resetDirty();
769 mMatureCheck->resetDirty(); 772 mMatureCheck->resetDirty();
770 mAutoRenewCheck->resetDirty(); 773 mAutoRenewCheck->resetDirty();
@@ -839,6 +842,7 @@ void LLPanelClassified::onClickSet(void* data)
839 location_text.append(llformat(" (%d, %d, %d)", region_x, region_y, region_z)); 842 location_text.append(llformat(" (%d, %d, %d)", region_x, region_y, region_z));
840 843
841 self->mLocationEditor->setText(location_text); 844 self->mLocationEditor->setText(location_text);
845 self->mLocationChanged = true;
842 846
843 // Set this to null so it updates on the next save. 847 // Set this to null so it updates on the next save.
844 self->mParcelID.setNull(); 848 self->mParcelID.setNull();
@@ -854,6 +858,7 @@ BOOL LLPanelClassified::checkDirty()
854 if ( mNameEditor ) mDirty |= mNameEditor->isDirty(); 858 if ( mNameEditor ) mDirty |= mNameEditor->isDirty();
855 if ( mDescEditor ) mDirty |= mDescEditor->isDirty(); 859 if ( mDescEditor ) mDirty |= mDescEditor->isDirty();
856 if ( mLocationEditor ) mDirty |= mLocationEditor->isDirty(); 860 if ( mLocationEditor ) mDirty |= mLocationEditor->isDirty();
861 if ( mLocationChanged ) mDirty |= TRUE;
857 if ( mCategoryCombo ) mDirty |= mCategoryCombo->isDirty(); 862 if ( mCategoryCombo ) mDirty |= mCategoryCombo->isDirty();
858 if ( mMatureCheck ) mDirty |= mMatureCheck->isDirty(); 863 if ( mMatureCheck ) mDirty |= mMatureCheck->isDirty();
859 if ( mAutoRenewCheck ) mDirty |= mAutoRenewCheck->isDirty(); 864 if ( mAutoRenewCheck ) mDirty |= mAutoRenewCheck->isDirty();