aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelevent.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llpanelevent.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llpanelevent.cpp')
-rw-r--r--linden/indra/newview/llpanelevent.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/linden/indra/newview/llpanelevent.cpp b/linden/indra/newview/llpanelevent.cpp
index 403684c..2bf61b3 100644
--- a/linden/indra/newview/llpanelevent.cpp
+++ b/linden/indra/newview/llpanelevent.cpp
@@ -177,7 +177,7 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
177 177
178 if (!self->mEventInfo.mHasCover) 178 if (!self->mEventInfo.mHasCover)
179 { 179 {
180 self->mTBCover->setText(self->childGetText("none")); 180 self->mTBCover->setText(self->getString("none"));
181 } 181 }
182 else 182 else
183 { 183 {
@@ -216,11 +216,11 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
216 216
217 if (gEventNotifier.hasNotification(self->mEventInfo.mID)) 217 if (gEventNotifier.hasNotification(self->mEventInfo.mID))
218 { 218 {
219 self->mNotifyBtn->setLabel(self->childGetText("dont_notify")); 219 self->mNotifyBtn->setLabel(self->getString("dont_notify"));
220 } 220 }
221 else 221 else
222 { 222 {
223 self->mNotifyBtn->setLabel(self->childGetText("notify")); 223 self->mNotifyBtn->setLabel(self->getString("notify"));
224 } 224 }
225 } 225 }
226} 226}
@@ -228,14 +228,9 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **)
228 228
229void LLPanelEvent::draw() 229void LLPanelEvent::draw()
230{ 230{
231 char firstname[DB_FIRST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ 231 std::string name;
232 char lastname[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ 232 gCacheName->getFullName(mEventInfo.mRunByID, name);
233 gCacheName->getName(mEventInfo.mRunByID, firstname, lastname); 233
234
235 LLString name;
236 name = firstname;
237 name += " ";
238 name += lastname;
239 mTBRunBy->setText(name); 234 mTBRunBy->setText(name);
240 235
241 LLPanel::draw(); 236 LLPanel::draw();
@@ -312,12 +307,12 @@ void LLPanelEvent::onClickNotify(void *data)
312 if (!gEventNotifier.hasNotification(self->mEventID)) 307 if (!gEventNotifier.hasNotification(self->mEventID))
313 { 308 {
314 gEventNotifier.add(self->mEventInfo); 309 gEventNotifier.add(self->mEventInfo);
315 self->mNotifyBtn->setLabel(self->childGetText("dont_notify")); 310 self->mNotifyBtn->setLabel(self->getString("dont_notify"));
316 } 311 }
317 else 312 else
318 { 313 {
319 gEventNotifier.remove(self->mEventInfo.mID); 314 gEventNotifier.remove(self->mEventInfo.mID);
320 self->mNotifyBtn->setLabel(self->childGetText("notify")); 315 self->mNotifyBtn->setLabel(self->getString("notify"));
321 } 316 }
322} 317}
323 318