summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterhandler.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2021-06-25 00:51:02 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2021-06-25 00:51:02 +0300
commita4c6c7059ffc9c61bd66758dddee74383e112fe1 (patch)
tree740e72af630ec1a75dd8949cfe1c67ea1076183c /indra/newview/llfloaterhandler.cpp
parentabf8c4b364bca97d4295797a14f459d85bef1714 (diff)
parent467d8339c970c253dada2cf0e1eed45be66593ac (diff)
Merge branch 'master' into DRTVWR-516-maint
# Conflicts: # indra/newview/app_settings/settings.xml # indra/newview/llvoicevivox.cpp
Diffstat (limited to 'indra/newview/llfloaterhandler.cpp')
-rw-r--r--indra/newview/llfloaterhandler.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llfloaterhandler.cpp b/indra/newview/llfloaterhandler.cpp
index e2160498e9..8ebb14149c 100644
--- a/indra/newview/llfloaterhandler.cpp
+++ b/indra/newview/llfloaterhandler.cpp
@@ -26,6 +26,7 @@
#include "llfloater.h"
#include "llmediactrl.h"
+#include "llfloaterreg.h"
// register with dispatch via global object
LLFloaterHandler gFloaterHandler;
@@ -50,9 +51,15 @@ LLFloater* get_parent_floater(LLView* view)
bool LLFloaterHandler::handle(const LLSD &params, const LLSD &query_map, LLMediaCtrl *web)
{
- if (params.size() < 2) return false;
+ if (params.size() < 1) return false;
LLFloater* floater = NULL;
// *TODO: implement floater lookup by name
+
+ if (params[0].asString() == "destinations")
+ {
+ LLFloaterReg::toggleInstanceOrBringToFront("destinations");
+ return true;
+ }
if (params[0].asString() == "self")
{
if (web)