diff options
author | McCabe Maxsted | 2010-04-25 22:47:21 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-25 22:47:21 -0700 |
commit | 22497afacce5c44515bddea006265905739cc190 (patch) | |
tree | 9e492d5974448c42a5f9c4975e3e123427ba46a1 /linden | |
parent | Removed hardcoded references to secondlife.com/support (diff) | |
download | meta-impy-22497afacce5c44515bddea006265905739cc190.zip meta-impy-22497afacce5c44515bddea006265905739cc190.tar.gz meta-impy-22497afacce5c44515bddea006265905739cc190.tar.bz2 meta-impy-22497afacce5c44515bddea006265905739cc190.tar.xz |
Fixed #199: After losing connection, 'Quit' button doesn't quit
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index e55d4ab..bd32d28 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -2686,7 +2686,11 @@ void LLAppViewer::removeMarkerFile(bool leave_logout_marker) | |||
2686 | 2686 | ||
2687 | //this gets called after we get a packet back from the | 2687 | //this gets called after we get a packet back from the |
2688 | //server saying we are logged out, or if the packet times | 2688 | //server saying we are logged out, or if the packet times |
2689 | //out | 2689 | //out. |
2690 | // Beware of calling this directly as it'll have odd effects | ||
2691 | // due to the Logout feature. You should really use: | ||
2692 | // LLAppViewer::instance()->requestLogout(true); | ||
2693 | // instead. -- MC | ||
2690 | void LLAppViewer::forceQuit() | 2694 | void LLAppViewer::forceQuit() |
2691 | { | 2695 | { |
2692 | 2696 | ||
@@ -3099,7 +3103,7 @@ bool finish_disconnect(const LLSD& notification, const LLSD& response) | |||
3099 | 3103 | ||
3100 | if (1 == option) | 3104 | if (1 == option) |
3101 | { | 3105 | { |
3102 | LLAppViewer::instance()->forceQuit(); | 3106 | LLAppViewer::instance()->requestLogout(true); |
3103 | } | 3107 | } |
3104 | return false; | 3108 | return false; |
3105 | } | 3109 | } |
@@ -3107,7 +3111,7 @@ bool finish_disconnect(const LLSD& notification, const LLSD& response) | |||
3107 | // Callback from an early disconnect dialog, force an exit | 3111 | // Callback from an early disconnect dialog, force an exit |
3108 | bool finish_forced_disconnect(const LLSD& notification, const LLSD& response) | 3112 | bool finish_forced_disconnect(const LLSD& notification, const LLSD& response) |
3109 | { | 3113 | { |
3110 | LLAppViewer::instance()->forceQuit(); | 3114 | LLAppViewer::instance()->requestLogout(true); |
3111 | return false; | 3115 | return false; |
3112 | } | 3116 | } |
3113 | 3117 | ||