diff options
author | McCabe Maxsted | 2010-07-26 21:38:15 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-07-26 21:38:15 -0700 |
commit | 66b8150d4ec94161887cd55d2f5a04e79d1132d7 (patch) | |
tree | 236c7b4db1963a4d65faa2550cb69f57b339300c /linden/indra | |
parent | Decreased the default detached chat history and IM window min heights (diff) | |
download | meta-impy-66b8150d4ec94161887cd55d2f5a04e79d1132d7.zip meta-impy-66b8150d4ec94161887cd55d2f5a04e79d1132d7.tar.gz meta-impy-66b8150d4ec94161887cd55d2f5a04e79d1132d7.tar.bz2 meta-impy-66b8150d4ec94161887cd55d2f5a04e79d1132d7.tar.xz |
Don't cleanup menus on disconnect (#327)
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 0c643b9..c03c63d 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -3993,9 +3993,8 @@ void LLAppViewer::disconnectViewer() | |||
3993 | gFloaterView->restoreAll(); | 3993 | gFloaterView->restoreAll(); |
3994 | } | 3994 | } |
3995 | 3995 | ||
3996 | |||
3997 | std::list<LLFloater*> floaters_to_close; | 3996 | std::list<LLFloater*> floaters_to_close; |
3998 | for(LLView::child_list_const_iter_t it = gFloaterView->getChildList()->begin(); | 3997 | for (LLView::child_list_const_iter_t it = gFloaterView->getChildList()->begin(); |
3999 | it != gFloaterView->getChildList()->end(); | 3998 | it != gFloaterView->getChildList()->end(); |
4000 | ++it) | 3999 | ++it) |
4001 | { | 4000 | { |
@@ -4005,7 +4004,7 @@ void LLAppViewer::disconnectViewer() | |||
4005 | // floater_animation_preview.xml | 4004 | // floater_animation_preview.xml |
4006 | // files. | 4005 | // files. |
4007 | LLFloater* fl = static_cast<LLFloater*>(*it); | 4006 | LLFloater* fl = static_cast<LLFloater*>(*it); |
4008 | if(fl | 4007 | if (fl |
4009 | && (fl->getName() == "Image Preview" | 4008 | && (fl->getName() == "Image Preview" |
4010 | || fl->getName() == "Sound Preview" | 4009 | || fl->getName() == "Sound Preview" |
4011 | || fl->getName() == "Animation Preview" | 4010 | || fl->getName() == "Animation Preview" |
@@ -4042,7 +4041,8 @@ void LLAppViewer::disconnectViewer() | |||
4042 | 4041 | ||
4043 | // close inventory interface, close all windows | 4042 | // close inventory interface, close all windows |
4044 | LLInventoryView::cleanup(); | 4043 | LLInventoryView::cleanup(); |
4045 | cleanup_menus(); | 4044 | // Don't cleanup menus on disconnect in order to avoid crashes -- MC |
4045 | //cleanup_menus(); | ||
4046 | // Also writes cached agent settings to gSavedSettings | 4046 | // Also writes cached agent settings to gSavedSettings |
4047 | gAgent.cleanup(); | 4047 | gAgent.cleanup(); |
4048 | 4048 | ||