diff options
author | Jacek Antonelli | 2009-05-25 18:21:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-05-25 18:38:37 -0500 |
commit | 2099a7a2287be16d861962fb19bf48a38f8d923c (patch) | |
tree | 6bb721965f80543d6edf2f6307e1f2b6cfe6a1f5 /linden | |
parent | Added Teleport Home confirmation and callback methods. (diff) | |
download | meta-impy-2099a7a2287be16d861962fb19bf48a38f8d923c.zip meta-impy-2099a7a2287be16d861962fb19bf48a38f8d923c.tar.gz meta-impy-2099a7a2287be16d861962fb19bf48a38f8d923c.tar.bz2 meta-impy-2099a7a2287be16d861962fb19bf48a38f8d923c.tar.xz |
User-initiated Teleport Home has confirmation dialog.
That's in the World menu and on the world map.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llfloaterworldmap.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaterworldmap.cpp b/linden/indra/newview/llfloaterworldmap.cpp index 8396454..66b2813 100644 --- a/linden/indra/newview/llfloaterworldmap.cpp +++ b/linden/indra/newview/llfloaterworldmap.cpp | |||
@@ -1052,8 +1052,7 @@ void LLFloaterWorldMap::onPanBtn( void* userdata ) | |||
1052 | // static | 1052 | // static |
1053 | void LLFloaterWorldMap::onGoHome(void*) | 1053 | void LLFloaterWorldMap::onGoHome(void*) |
1054 | { | 1054 | { |
1055 | gAgent.teleportHome(); | 1055 | gAgent.teleportHomeConfirm(); |
1056 | gFloaterWorldMap->close(); | ||
1057 | } | 1056 | } |
1058 | 1057 | ||
1059 | 1058 | ||
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 486e4f1..37f9ad2 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -4686,7 +4686,7 @@ class LLWorldTeleportHome : public view_listener_t | |||
4686 | { | 4686 | { |
4687 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4687 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4688 | { | 4688 | { |
4689 | gAgent.teleportHome(); | 4689 | gAgent.teleportHomeConfirm(); |
4690 | return true; | 4690 | return true; |
4691 | } | 4691 | } |
4692 | }; | 4692 | }; |