diff options
Diffstat (limited to 'linden/indra/newview/llpanelplace.cpp')
-rw-r--r-- | linden/indra/newview/llpanelplace.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelplace.cpp b/linden/indra/newview/llpanelplace.cpp index d08d25e..8825ce7 100644 --- a/linden/indra/newview/llpanelplace.cpp +++ b/linden/indra/newview/llpanelplace.cpp | |||
@@ -89,6 +89,9 @@ BOOL LLPanelPlace::postBuild() | |||
89 | mSnapshotCtrl->setEnabled(FALSE); | 89 | mSnapshotCtrl->setEnabled(FALSE); |
90 | 90 | ||
91 | mNameEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "name_editor"); | 91 | mNameEditor = LLViewerUICtrlFactory::getTextBoxByName(this, "name_editor"); |
92 | // Text boxes appear to have a " " in them by default. This breaks the | ||
93 | // emptiness test for filling in data from the network. Slam to empty. | ||
94 | mNameEditor->setText( LLString::null ); | ||
92 | 95 | ||
93 | mDescEditor = LLUICtrlFactory::getTextEditorByName(this, "desc_editor"); | 96 | mDescEditor = LLUICtrlFactory::getTextEditorByName(this, "desc_editor"); |
94 | 97 | ||
@@ -141,6 +144,10 @@ void LLPanelPlace::resetLocation() | |||
141 | mPosGlobal.clearVec(); | 144 | mPosGlobal.clearVec(); |
142 | mPosRegion.clearVec(); | 145 | mPosRegion.clearVec(); |
143 | mAuctionID = 0; | 146 | mAuctionID = 0; |
147 | mNameEditor->setText( LLString::null ); | ||
148 | mDescEditor->setText( LLString::null ); | ||
149 | mInfoEditor->setText( LLString::null ); | ||
150 | mLocationEditor->setText( LLString::null ); | ||
144 | } | 151 | } |
145 | 152 | ||
146 | void LLPanelPlace::setParcelID(const LLUUID& parcel_id) | 153 | void LLPanelPlace::setParcelID(const LLUUID& parcel_id) |
@@ -154,10 +161,6 @@ void LLPanelPlace::setSnapshot(const LLUUID& snapshot_id) | |||
154 | mSnapshotCtrl->setImageAssetID(snapshot_id); | 161 | mSnapshotCtrl->setImageAssetID(snapshot_id); |
155 | } | 162 | } |
156 | 163 | ||
157 | void LLPanelPlace::setName(const std::string& name) | ||
158 | { | ||
159 | mNameEditor->setText(name); | ||
160 | } | ||
161 | 164 | ||
162 | void LLPanelPlace::setLocationString(const std::string& location) | 165 | void LLPanelPlace::setLocationString(const std::string& location) |
163 | { | 166 | { |
@@ -256,11 +259,17 @@ void LLPanelPlace::processParcelInfoReply(LLMessageSystem *msg, void **) | |||
256 | std::string name_str(name); | 259 | std::string name_str(name); |
257 | std::string desc_str(desc); | 260 | std::string desc_str(desc); |
258 | 261 | ||
259 | if(! name_str.empty() && ! self->mNameEditor->getText().empty()) | 262 | if( !name_str.empty() |
263 | && self->mNameEditor->getText().empty()) | ||
264 | { | ||
260 | self->mNameEditor->setText(name_str); | 265 | self->mNameEditor->setText(name_str); |
266 | } | ||
261 | 267 | ||
262 | if(! desc_str.empty() && ! self->mDescEditor->getText().empty()) | 268 | if( !desc_str.empty() |
269 | && self->mDescEditor->getText().empty()) | ||
270 | { | ||
263 | self->mDescEditor->setText(desc_str); | 271 | self->mDescEditor->setText(desc_str); |
272 | } | ||
264 | 273 | ||
265 | LLString info_text; | 274 | LLString info_text; |
266 | LLUIString traffic = self->getUIString("traffic_text"); | 275 | LLUIString traffic = self->getUIString("traffic_text"); |