diff options
author | Euclid Linden <euclid@lindenlab.com> | 2021-06-24 20:48:45 +0000 |
---|---|---|
committer | Euclid Linden <euclid@lindenlab.com> | 2021-06-24 20:48:45 +0000 |
commit | 3a98311ce76b4dfdc4c4aa7e4639945289b80c6a (patch) | |
tree | 442eb88e9bb9a3bdf7db457273f0e27ba6c86a46 /indra/newview/llfloaterhandler.cpp | |
parent | b854eceee3a867d64b20de18d6b7ce91b33abed0 (diff) | |
parent | 9127fe2978f9b29a96034b5a55ac33b873e22159 (diff) |
Merged in DV528-merge-6.4.21 (pull request #607)
DRTVWR-528 merge up to 6.4.21
Diffstat (limited to 'indra/newview/llfloaterhandler.cpp')
-rw-r--r-- | indra/newview/llfloaterhandler.cpp | 9 |
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 ¶ms, 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) |