diff options
author | Jacek Antonelli | 2009-11-02 19:45:36 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-11-02 19:46:29 -0600 |
commit | cb6f9f55ab0032e943e5c46ba95d17214895aaa7 (patch) | |
tree | 614036105fc7dd5191819614c998c46ed574fe0f /linden/indra/newview | |
parent | Cleaned up PanelRadar class a bit. (diff) | |
download | meta-impy-cb6f9f55ab0032e943e5c46ba95d17214895aaa7.zip meta-impy-cb6f9f55ab0032e943e5c46ba95d17214895aaa7.tar.gz meta-impy-cb6f9f55ab0032e943e5c46ba95d17214895aaa7.tar.bz2 meta-impy-cb6f9f55ab0032e943e5c46ba95d17214895aaa7.tar.xz |
"Go Here" in pie menu no longer asks for confirmation.
Double-click still does, though.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/lltoolpie.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.h | 1 |
3 files changed, 20 insertions, 3 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp index b32169d..cda76d9 100644 --- a/linden/indra/newview/lltoolpie.cpp +++ b/linden/indra/newview/lltoolpie.cpp | |||
@@ -681,7 +681,7 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask) | |||
681 | if (mPick.mPickType == LLPickInfo::PICK_LAND | 681 | if (mPick.mPickType == LLPickInfo::PICK_LAND |
682 | && !mPick.mPosGlobal.isExactlyZero()) | 682 | && !mPick.mPosGlobal.isExactlyZero()) |
683 | { | 683 | { |
684 | handle_go_to(); | 684 | handle_go_to_confirm(); |
685 | return TRUE; | 685 | return TRUE; |
686 | } | 686 | } |
687 | else if (mPick.mObjectID.notNull() | 687 | else if (mPick.mObjectID.notNull() |
@@ -691,7 +691,7 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask) | |||
691 | if(mPick.getObject().notNull() && mPick.getObject()->isHUDAttachment()) | 691 | if(mPick.getObject().notNull() && mPick.getObject()->isHUDAttachment()) |
692 | return FALSE; | 692 | return FALSE; |
693 | 693 | ||
694 | handle_go_to(); | 694 | handle_go_to_confirm(); |
695 | return TRUE; | 695 | return TRUE; |
696 | } | 696 | } |
697 | } | 697 | } |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index d0e326c..bd8b6ab 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -2384,7 +2384,7 @@ class LLObjectImportUpload : public view_listener_t | |||
2384 | } | 2384 | } |
2385 | }; | 2385 | }; |
2386 | 2386 | ||
2387 | bool handle_go_to() | 2387 | bool handle_go_to_confirm() |
2388 | { | 2388 | { |
2389 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) | 2389 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) |
2390 | if ( (rlv_handler_t::isEnabled()) && gAgent.forwardGrabbed() && (gRlvHandler.hasLockedAttachment()) ) | 2390 | if ( (rlv_handler_t::isEnabled()) && gAgent.forwardGrabbed() && (gRlvHandler.hasLockedAttachment()) ) |
@@ -2404,6 +2404,22 @@ bool handle_go_to() | |||
2404 | return true; | 2404 | return true; |
2405 | } | 2405 | } |
2406 | 2406 | ||
2407 | |||
2408 | bool handle_go_to() | ||
2409 | { | ||
2410 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) | ||
2411 | if ( (rlv_handler_t::isEnabled()) && gAgent.forwardGrabbed() && (gRlvHandler.hasLockedAttachment()) ) | ||
2412 | { | ||
2413 | return true; | ||
2414 | } | ||
2415 | // [/RLVa:KB] | ||
2416 | |||
2417 | handle_go_to_callback( 0, (void*)LLToolPie::getInstance() ); | ||
2418 | |||
2419 | return true; | ||
2420 | } | ||
2421 | |||
2422 | |||
2407 | //static | 2423 | //static |
2408 | void handle_go_to_callback(S32 option, void *userdata) | 2424 | void handle_go_to_callback(S32 option, void *userdata) |
2409 | { | 2425 | { |
diff --git a/linden/indra/newview/llviewermenu.h b/linden/indra/newview/llviewermenu.h index c4a88a2..a2f953c 100644 --- a/linden/indra/newview/llviewermenu.h +++ b/linden/indra/newview/llviewermenu.h | |||
@@ -106,6 +106,7 @@ void handle_toggle_flycam(); | |||
106 | bool handle_sit_or_stand(); | 106 | bool handle_sit_or_stand(); |
107 | bool handle_give_money_dialog(); | 107 | bool handle_give_money_dialog(); |
108 | bool handle_object_open(); | 108 | bool handle_object_open(); |
109 | bool handle_go_to_confirm(); | ||
109 | bool handle_go_to(); | 110 | bool handle_go_to(); |
110 | 111 | ||
111 | // Export to XML or Collada | 112 | // Export to XML or Collada |