summaryrefslogtreecommitdiff
path: root/indra/newview/llbrowsernotification.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-09-21 09:34:56 -0700
committerRichard Linden <none@none>2010-09-21 09:34:56 -0700
commite07c373bd4aef00aaa30735f722ed1b681a5d060 (patch)
tree9a6997cebf80289d275758c6c9c2007f3fbfad98 /indra/newview/llbrowsernotification.cpp
parenta20a98454de522eba4da17881b85a0f16bb3c116 (diff)
parent71259fcccbfa834eab35eb3e98a7afc93786b32f (diff)
merge
Diffstat (limited to 'indra/newview/llbrowsernotification.cpp')
-rw-r--r--indra/newview/llbrowsernotification.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llbrowsernotification.cpp b/indra/newview/llbrowsernotification.cpp
index ee19701773..d6a813d608 100644
--- a/indra/newview/llbrowsernotification.cpp
+++ b/indra/newview/llbrowsernotification.cpp
@@ -30,12 +30,19 @@
#include "llnotificationhandler.h"
#include "llnotifications.h"
#include "llfloaterreg.h"
+#include "llmediactrl.h"
using namespace LLNotificationsUI;
bool LLBrowserNotification::processNotification(const LLSD& notify)
{
+ LLNotificationPtr notification = LLNotifications::instance().find(notify["id"].asUUID());
+ if (!notification) return false;
- // browser notifications are currently handled directly by the LLMediaCtrl instance that spawned them
+ LLMediaCtrl* media_instance = LLMediaCtrl::getInstance(notification->getPayload()["media_id"].asUUID());
+ if (media_instance)
+ {
+ media_instance->showNotification(notification);
+ }
return false;
}