diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llpanelevent.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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.cpp | 21 |
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 | ||
229 | void LLPanelEvent::draw() | 229 | void 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 | ||