aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnotify.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llnotify.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llnotify.cpp')
-rw-r--r--linden/indra/newview/llnotify.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llnotify.cpp b/linden/indra/newview/llnotify.cpp
index c7d3a95..3512e57 100644
--- a/linden/indra/newview/llnotify.cpp
+++ b/linden/indra/newview/llnotify.cpp
@@ -281,10 +281,6 @@ LLNotifyBox::LLNotifyBox(const LLString& xml_desc, const LLString::format_map_t&
281// virtual 281// virtual
282LLNotifyBox::~LLNotifyBox() 282LLNotifyBox::~LLNotifyBox()
283{ 283{
284 if (!mIsTip)
285 {
286 sNotifyBoxCount--;
287 }
288 S32 count = mBtnCallbackData.count(); 284 S32 count = mBtnCallbackData.count();
289 for (S32 i = 0; i < count; i++) 285 for (S32 i = 0; i < count; i++)
290 { 286 {
@@ -395,9 +391,13 @@ void LLNotifyBox::drawBackground() const
395void LLNotifyBox::close() 391void LLNotifyBox::close()
396{ 392{
397 BOOL isTipTmp = mIsTip; 393 BOOL isTipTmp = mIsTip;
398 // delete this so that the sNotifyBoxCount is updated properly, so that the 394
399 // new frontman properly has a next button or not 395 if (!mIsTip)
400 delete this; 396 {
397 sNotifyBoxCount--;
398 }
399
400 die();
401 if(!isTipTmp) 401 if(!isTipTmp)
402 { 402 {
403 LLNotifyBox * front = gNotifyBoxView->getFirstNontipBox(); 403 LLNotifyBox * front = gNotifyBoxView->getFirstNontipBox();
@@ -714,7 +714,7 @@ LLNotifyBox * LLNotifyBoxView::getFirstNontipBox() const
714 iter++) 714 iter++)
715 { 715 {
716 LLNotifyBox * box = static_cast<LLNotifyBox*>(*iter); 716 LLNotifyBox * box = static_cast<LLNotifyBox*>(*iter);
717 if(!box->isTip()) 717 if(!box->isTip() && !box->isDead())
718 { 718 {
719 return box; 719 return box;
720 } 720 }