diff options
author | Rick Pasetto <rick@lindenlab.com> | 2009-11-05 17:50:32 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2009-11-05 17:50:32 -0800 |
commit | 8c44fac93ffce1a41d84f1d6e98891a50ab1dbab (patch) | |
tree | aca14bb3256b6dd4c1a7a342d36f2cc989159f41 /indra/newview/llnotificationscripthandler.cpp | |
parent | 1712265901da8ba65f2a9ae3e903372fafacd268 (diff) | |
parent | e654475529d924603a9b3bc8c4775c86d3cf7933 (diff) |
merge from remote repo
Diffstat (limited to 'indra/newview/llnotificationscripthandler.cpp')
-rw-r--r-- | indra/newview/llnotificationscripthandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llnotificationscripthandler.cpp b/indra/newview/llnotificationscripthandler.cpp index 070af432d6..dac7a4ca3a 100644 --- a/indra/newview/llnotificationscripthandler.cpp +++ b/indra/newview/llnotificationscripthandler.cpp @@ -37,6 +37,7 @@ #include "lltoastnotifypanel.h" #include "llviewercontrol.h" #include "llviewerwindow.h" +#include "llnotificationmanager.h" using namespace LLNotificationsUI; @@ -129,7 +130,9 @@ void LLScriptHandler::onRejectToast(LLUUID& id) { LLNotificationPtr notification = LLNotifications::instance().find(id); - if(notification) + if (notification + && LLNotificationManager::getInstance()->getHandlerForNotification( + notification->getType()) == this) { LLNotifications::instance().cancel(notification); } |