From 7ea7d4cf6cb74a5482e9002e6f8d6d2bf20fccea Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Sat, 14 Jun 2014 15:40:36 -0400 Subject: [PATCH] Fix any and all crashes relating to initialization of UI components that may need the name cache to be initialized already. --- indra/newview/llstartup.cpp | 76 ++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index ae94920d5..6805d5431 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1785,45 +1785,6 @@ bool idle_startup() LLRect window(0, gViewerWindow->getWindowHeight(), gViewerWindow->getWindowWidth(), 0); gViewerWindow->adjustControlRectanglesForFirstUse(window); - if (gSavedSettings.getBOOL("ShowMiniMap")) - { - LLFloaterMap::showInstance(); - } - if (gSavedSettings.getBOOL("ShowRadar")) - { - LLFloaterAvatarList::showInstance(); - } - // - else if (gSavedSettings.getBOOL("RadarKeepOpen")) - { - LLFloaterAvatarList::getInstance()->close(); - } - if (gSavedSettings.getBOOL("SHShowMediaTicker")) - { - SHFloaterMediaTicker::showInstance(); - } - // - if (gSavedSettings.getBOOL("ShowCameraControls")) - { - LLFloaterCamera::showInstance(); - } - if (gSavedSettings.getBOOL("ShowMovementControls")) - { - LLFloaterMove::showInstance(); - } - - if (gSavedSettings.getBOOL("ShowActiveSpeakers")) - { - LLFloaterActiveSpeakers::showInstance(); - } - - if (gSavedSettings.getBOOL("ShowBeaconsFloater")) - { - LLFloaterBeacons::showInstance(); - } - - - if (!gNoRender) { //Set up cloud rendertypes. Passed argument is unused. @@ -1874,6 +1835,43 @@ bool idle_startup() LLVoiceClient::getInstance()->updateSettings(); display_startup(); + if (gSavedSettings.getBOOL("ShowMiniMap")) + { + LLFloaterMap::showInstance(); + } + if (gSavedSettings.getBOOL("ShowRadar")) + { + LLFloaterAvatarList::showInstance(); + } + // + else if (gSavedSettings.getBOOL("RadarKeepOpen")) + { + LLFloaterAvatarList::getInstance()->close(); + } + if (gSavedSettings.getBOOL("SHShowMediaTicker")) + { + SHFloaterMediaTicker::showInstance(); + } + // + if (gSavedSettings.getBOOL("ShowCameraControls")) + { + LLFloaterCamera::showInstance(); + } + if (gSavedSettings.getBOOL("ShowMovementControls")) + { + LLFloaterMove::showInstance(); + } + + if (gSavedSettings.getBOOL("ShowActiveSpeakers")) + { + LLFloaterActiveSpeakers::showInstance(); + } + + if (gSavedSettings.getBOOL("ShowBeaconsFloater")) + { + LLFloaterBeacons::showInstance(); + } + // *Note: this is where gWorldMap used to be initialized. // register null callbacks for audio until the audio system is initialized