summaryrefslogtreecommitdiff
path: root/indra/newview/llscriptfloater.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2016-01-11 03:24:36 +0200
committerAndreyL ProductEngine <alihatskiy@productengine.com>2016-01-11 03:24:36 +0200
commit29cb3a4a93543c41b23ba429c4d04189c24d30fc (patch)
tree7f13fb19fa83beb23a74a48df3de4bfba268824d /indra/newview/llscriptfloater.cpp
parent28c705fd1cc704ebff91339f87671337bd8987b9 (diff)
MAINT-6018 Open URL dialog spam
Added the ability to close all notifications from one owner at once
Diffstat (limited to 'indra/newview/llscriptfloater.cpp')
-rwxr-xr-xindra/newview/llscriptfloater.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llscriptfloater.cpp b/indra/newview/llscriptfloater.cpp
index 1d021ec28f..b5b5bc855d 100755
--- a/indra/newview/llscriptfloater.cpp
+++ b/indra/newview/llscriptfloater.cpp
@@ -420,6 +420,18 @@ void LLScriptFloaterManager::onAddNotification(const LLUUID& notification_id)
toggleScriptFloater(notification_id, set_new_message);
}
+void LLScriptFloaterManager::removeAllNotificationsByOwner(const LLUUID& notification_id)
+{
+ LLNotificationPtr notification = LLNotifications::instance().find(notification_id);
+ if (notification != NULL && !notification->isCancelled())
+ {
+ LLSD payload = notification->getPayload();
+ LLUUID owner = payload.get("owner_id").asUUID();
+
+ LLNotifications::instance().cancelByOwner(owner);
+ }
+}
+
void LLScriptFloaterManager::removeNotification(const LLUUID& notification_id)
{
LLNotificationPtr notification = LLNotifications::instance().find(notification_id);