diff options
| author | Don Kjer <don@lindenlab.com> | 2013-10-29 13:20:18 +0000 |
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2013-10-29 13:20:18 +0000 |
| commit | 7866356d7719413b952787a509ebd3c4ce8d39b1 (patch) | |
| tree | a200c96afd5ab8ad6da64c14ec6211aac9d5c65f /indra/newview/llchiclet.cpp | |
| parent | 81fecfa9f7e8664ec4f3bcf6662fe34d4e5d41a1 (diff) | |
| parent | ea1e1b0925b386cf83178539b8eae9e25c573548 (diff) | |
Merge viewer-release => sunshine-internal
Diffstat (limited to 'indra/newview/llchiclet.cpp')
| -rwxr-xr-x | indra/newview/llchiclet.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index 88884042d4..131aea9da3 100755 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -220,18 +220,25 @@ void LLNotificationChiclet::setCounter(S32 counter) bool LLNotificationChiclet::ChicletNotificationChannel::filterNotification( LLNotificationPtr notification ) { - if (notification->getName() == "ScriptDialog") + bool displayNotification; + if ( (notification->getName() == "ScriptDialog") // special case for scripts + // if there is no toast window for the notification, filter it + || (!LLNotificationWellWindow::getInstance()->findItemByID(notification->getID())) + ) { - return false; + displayNotification = false; } - - if( !(notification->canLogToIM() && notification->hasFormElements()) - && (!notification->getPayload().has("give_inventory_notification") - || notification->getPayload()["give_inventory_notification"])) + else if( !(notification->canLogToIM() && notification->hasFormElements()) + && (!notification->getPayload().has("give_inventory_notification") + || notification->getPayload()["give_inventory_notification"])) { - return true; + displayNotification = true; } - return false; + else + { + displayNotification = false; + } + return displayNotification; } ////////////////////////////////////////////////////////////////////////// |
