diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-07 10:39:05 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-07 10:39:05 -0500 |
commit | e1e38c4cee980f815091cd94c8a529ffe3e24918 (patch) | |
tree | 35b16f61bd120f83bb74a77d4417dce1108e0542 /indra/newview/llbrowsernotification.cpp | |
parent | c02d6a319f378d5dcc34c51b20f556f175d2a40a (diff) | |
parent | 09c01c4e925833873a83665fe0642637b65e547e (diff) |
merge changes for storm-34
Diffstat (limited to 'indra/newview/llbrowsernotification.cpp')
-rw-r--r-- | indra/newview/llbrowsernotification.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/indra/newview/llbrowsernotification.cpp b/indra/newview/llbrowsernotification.cpp index d6a813d608..6e77d1e336 100644 --- a/indra/newview/llbrowsernotification.cpp +++ b/indra/newview/llbrowsernotification.cpp @@ -29,8 +29,9 @@ #include "llnotificationhandler.h" #include "llnotifications.h" -#include "llfloaterreg.h" #include "llmediactrl.h" +#include "llviewermedia.h" +#include "llviewermediafocus.h" using namespace LLNotificationsUI; @@ -39,10 +40,19 @@ bool LLBrowserNotification::processNotification(const LLSD& notify) LLNotificationPtr notification = LLNotifications::instance().find(notify["id"].asUUID()); if (!notification) return false; - LLMediaCtrl* media_instance = LLMediaCtrl::getInstance(notification->getPayload()["media_id"].asUUID()); + LLUUID media_id = notification->getPayload()["media_id"].asUUID(); + LLMediaCtrl* media_instance = LLMediaCtrl::getInstance(media_id); if (media_instance) { media_instance->showNotification(notification); } + else if (LLViewerMediaFocus::instance().getControlsMediaID() == media_id) + { + LLViewerMediaImpl* impl = LLViewerMedia::getMediaImplFromTextureID(media_id); + if (impl) + { + impl->showNotification(notification); + } + } return false; } |