diff options
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index cebd6fd..63ea2e8 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -502,7 +502,7 @@ BOOL enable_detach(void*); | |||
502 | BOOL enable_region_owner(void*); | 502 | BOOL enable_region_owner(void*); |
503 | void menu_toggle_attached_lights(void* user_data); | 503 | void menu_toggle_attached_lights(void* user_data); |
504 | void menu_toggle_attached_particles(void* user_data); | 504 | void menu_toggle_attached_particles(void* user_data); |
505 | static void handle_go_to_callback(S32 option, void *userdata); | 505 | static bool handle_go_to_callback(const LLSD& notification, const LLSD& response); |
506 | 506 | ||
507 | class LLMenuParcelObserver : public LLParcelObserver | 507 | class LLMenuParcelObserver : public LLParcelObserver |
508 | { | 508 | { |
@@ -2443,11 +2443,11 @@ bool handle_go_to_confirm() | |||
2443 | 2443 | ||
2444 | if (action == "teleport") | 2444 | if (action == "teleport") |
2445 | { | 2445 | { |
2446 | gViewerWindow->alertXml("ConfirmDoubleClickTP", handle_go_to_callback, (void*)LLToolPie::getInstance()); | 2446 | LLNotifications::instance().add("ConfirmDoubleClickTP", , LLSD(), LLSD(), &handle_go_to_callback); |
2447 | } | 2447 | } |
2448 | else if (action == "autopilot") | 2448 | else if (action == "autopilot") |
2449 | { | 2449 | { |
2450 | gViewerWindow->alertXml("ConfirmAutoPilot", handle_go_to_callback, (void*)LLToolPie::getInstance()); | 2450 | LLNotifications::instance().add("ConfirmAutoPilot", , LLSD(), LLSD(), &handle_go_to_callback); |
2451 | } | 2451 | } |
2452 | return true; | 2452 | return true; |
2453 | } | 2453 | } |
@@ -2462,18 +2462,19 @@ bool handle_go_to() | |||
2462 | } | 2462 | } |
2463 | // [/RLVa:KB] | 2463 | // [/RLVa:KB] |
2464 | 2464 | ||
2465 | handle_go_to_callback( 0, (void*)LLToolPie::getInstance() ); | 2465 | handle_go_to_callback( LLSD(), LLSD(0) ); |
2466 | 2466 | ||
2467 | return true; | 2467 | return true; |
2468 | } | 2468 | } |
2469 | 2469 | ||
2470 | 2470 | ||
2471 | //static | 2471 | //static |
2472 | void handle_go_to_callback(S32 option, void *userdata) | 2472 | bool handle_go_to_callback(const LLSD& notification, const LLSD& response) |
2473 | { | 2473 | { |
2474 | S32 option = LLNotification::getSelectedOption(notification, response); | ||
2474 | if (option == 0) | 2475 | if (option == 0) |
2475 | { | 2476 | { |
2476 | LLToolPie* pie = (LLToolPie*)userdata; | 2477 | LLToolPie* pie = LLToolPie::getInstance(); |
2477 | 2478 | ||
2478 | // JAMESDEBUG try simulator autopilot | 2479 | // JAMESDEBUG try simulator autopilot |
2479 | std::vector<std::string> strings; | 2480 | std::vector<std::string> strings; |