summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2026-05-15 19:27:23 +0300
committerGitHub <noreply@github.com>2026-05-15 19:27:23 +0300
commit9e7d3b1654798ab85c8a118dca04999addef854e (patch)
treeefd75bd5aa9fbc8000d33286ccb174ba632857e3 /indra/newview/llviewermenu.cpp
parent35b7766beed50d87fab486a3064218e434ef36fb (diff)
#5802 Open teleport history with a keystroke
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 46dfa61870..129d5477f1 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -5183,6 +5183,27 @@ void handle_link_objects()
}
}
+void handle_unlink_objects()
+{
+ if (LLSelectMgr::getInstance()->getSelection()->isEmpty())
+ {
+ LLPanel* visited_panel = LLFloaterSidePanelContainer::getPanel("places", "Teleport History");
+ if (visited_panel && visited_panel->isInVisibleChain())
+ {
+ LLFloaterReg::hideInstance("places");
+ }
+ else
+ {
+ LLFloaterReg::toggleInstanceOrBringToFront("places");
+ LLFloaterSidePanelContainer::showPanel("places", LLSD().with("type", "open_teleport_history_tab"));
+ }
+ }
+ else
+ {
+ LLSelectMgr::getInstance()->unlinkObjects();
+ }
+}
+
// You can return an object to its owner if it is on your land.
class LLObjectReturn : public view_listener_t
{
@@ -9940,7 +9961,7 @@ void initialize_menus()
view_listener_t::addMenu(new LLToolsUseSelectionForGrid(), "Tools.UseSelectionForGrid");
view_listener_t::addMenu(new LLToolsSelectNextPartFace(), "Tools.SelectNextPart");
commit.add("Tools.Link", boost::bind(&handle_link_objects));
- commit.add("Tools.Unlink", boost::bind(&LLSelectMgr::unlinkObjects, LLSelectMgr::getInstance()));
+ commit.add("Tools.Unlink", boost::bind(&handle_unlink_objects));
view_listener_t::addMenu(new LLToolsStopAllAnimations(), "Tools.StopAllAnimations");
view_listener_t::addMenu(new LLToolsReleaseKeys(), "Tools.ReleaseKeys");
view_listener_t::addMenu(new LLToolsEnableReleaseKeys(), "Tools.EnableReleaseKeys");