summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastnotifypanel.cpp
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2010-05-12 14:10:26 +0300
committerAlexei Arabadji <aarabadji@productengine.com>2010-05-12 14:10:26 +0300
commit367b77eb1b87ba55fd4a94e9b2630a7d002d4399 (patch)
tree6d4fcfeb2fcd5ffcf0f5f291160e04f3f1c3e338 /indra/newview/lltoastnotifypanel.cpp
parent9ab4d2ca8be2edcafa6cdfc3bd774ebaed444dc8 (diff)
EXT-6783 FIXED Made notifications that are saved into notification well window be persisted and offer notifications non-persisted.
reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/368/ --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/lltoastnotifypanel.cpp')
-rw-r--r--indra/newview/lltoastnotifypanel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/lltoastnotifypanel.cpp b/indra/newview/lltoastnotifypanel.cpp
index 089163929e..9275ca4f42 100644
--- a/indra/newview/lltoastnotifypanel.cpp
+++ b/indra/newview/lltoastnotifypanel.cpp
@@ -291,7 +291,10 @@ LLToastNotifyPanel::~LLToastNotifyPanel()
{
// let reusable notification be deleted
mNotification->setReusable(false);
- LLNotifications::getInstance()->cancel(mNotification);
+ if (!mNotification->isPersistent())
+ {
+ LLNotifications::getInstance()->cancel(mNotification);
+ }
}
}