diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2016-01-12 21:08:27 +0200 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2016-01-12 21:08:27 +0200 |
commit | 6df80ebcc4b547d3728ed5fca6fa4efa899f30ea (patch) | |
tree | 75e6be3cb9ca1a93602dddfe111fed4a600face7 /indra | |
parent | 1e0753ddb21bf5bda734a2a26ddd97588224093e (diff) |
MAINT-6018 Open URL dialog spam
Removed "close by owner" item form chiclet's right-click menu
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llchiclet.cpp | 4 | ||||
-rwxr-xr-x | indra/newview/llscriptfloater.cpp | 12 | ||||
-rwxr-xr-x | indra/newview/llscriptfloater.h | 5 | ||||
-rwxr-xr-x | indra/newview/skins/default/xui/en/menu_script_chiclet.xml | 8 |
4 files changed, 0 insertions, 29 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index ad26bbd491..dedb06c945 100755 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -1092,10 +1092,6 @@ void LLScriptChiclet::onMenuItemClicked(const LLSD& user_data) { LLScriptFloaterManager::instance().removeNotification(getSessionId()); } - else if ("end_owner" == action) - { - LLScriptFloaterManager::instance().removeAllNotificationsByOwner(getSessionId()); - } } void LLScriptChiclet::createPopupMenu() diff --git a/indra/newview/llscriptfloater.cpp b/indra/newview/llscriptfloater.cpp index b5b5bc855d..1d021ec28f 100755 --- a/indra/newview/llscriptfloater.cpp +++ b/indra/newview/llscriptfloater.cpp @@ -420,18 +420,6 @@ 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); diff --git a/indra/newview/llscriptfloater.h b/indra/newview/llscriptfloater.h index bb35526cf7..70451194b3 100755 --- a/indra/newview/llscriptfloater.h +++ b/indra/newview/llscriptfloater.h @@ -60,11 +60,6 @@ public: void onAddNotification(const LLUUID& notification_id); /** - * Removes all notifications by owner id. - */ - void removeAllNotificationsByOwner(const LLUUID& notification_id); - - /** * Removes notification. */ void removeNotification(const LLUUID& notification_id); diff --git a/indra/newview/skins/default/xui/en/menu_script_chiclet.xml b/indra/newview/skins/default/xui/en/menu_script_chiclet.xml index ceeef1cd46..db29d9cebc 100755 --- a/indra/newview/skins/default/xui/en/menu_script_chiclet.xml +++ b/indra/newview/skins/default/xui/en/menu_script_chiclet.xml @@ -16,12 +16,4 @@ function="ScriptChiclet.Action" parameter="end" /> </menu_item_call> - <menu_item_call - label="Close by owner" - layout="topleft" - name="CloseByOwner"> - <menu_item_call.on_click - function="ScriptChiclet.Action" - parameter="end_owner" /> - </menu_item_call> </menu> |