diff options
author | McCabe Maxsted | 2010-06-18 21:23:29 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:44:20 -0500 |
commit | ad5b6e3de6648e53bb8669e561d5e0fcf2e84c76 (patch) | |
tree | 739b4094d9674395eaade9c1e73d0d65338d4bbf /linden/indra/newview | |
parent | Fixed #318 Crash in LLWindlightRemoteCtrl::refreshPresets() (diff) | |
download | meta-impy-ad5b6e3de6648e53bb8669e561d5e0fcf2e84c76.zip meta-impy-ad5b6e3de6648e53bb8669e561d5e0fcf2e84c76.tar.gz meta-impy-ad5b6e3de6648e53bb8669e561d5e0fcf2e84c76.tar.bz2 meta-impy-ad5b6e3de6648e53bb8669e561d5e0fcf2e84c76.tar.xz |
Made the AO start loading at startup
(fixes bug where it wouldn't enable unless the window was opened)
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/floaterao.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/floaterao.h | 4 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 16 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 8 |
4 files changed, 23 insertions, 7 deletions
diff --git a/linden/indra/newview/floaterao.cpp b/linden/indra/newview/floaterao.cpp index b084189..4214e21 100644 --- a/linden/indra/newview/floaterao.cpp +++ b/linden/indra/newview/floaterao.cpp | |||
@@ -45,6 +45,8 @@ void cmdline_printchat(std::string message) | |||
45 | LLFloaterChat::addChat(chat, FALSE, FALSE); | 45 | LLFloaterChat::addChat(chat, FALSE, FALSE); |
46 | } | 46 | } |
47 | 47 | ||
48 | AOInvTimer* gAOInvTimer = NULL; | ||
49 | |||
48 | 50 | ||
49 | class AONotecardCallback : public LLInventoryCallback | 51 | class AONotecardCallback : public LLInventoryCallback |
50 | { | 52 | { |
diff --git a/linden/indra/newview/floaterao.h b/linden/indra/newview/floaterao.h index 204717f..cf8ee22 100644 --- a/linden/indra/newview/floaterao.h +++ b/linden/indra/newview/floaterao.h | |||
@@ -126,4 +126,6 @@ protected: | |||
126 | 126 | ||
127 | }; | 127 | }; |
128 | 128 | ||
129 | #endif \ No newline at end of file | 129 | extern AOInvTimer* gAOInvTimer; |
130 | |||
131 | #endif | ||
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index ab4157f..b810abe 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -154,6 +154,7 @@ | |||
154 | #include "viewerversion.h" | 154 | #include "viewerversion.h" |
155 | 155 | ||
156 | // includes for idle() idleShutdown() | 156 | // includes for idle() idleShutdown() |
157 | #include "floaterao.h" | ||
157 | #include "llviewercontrol.h" | 158 | #include "llviewercontrol.h" |
158 | #include "lleventnotifier.h" | 159 | #include "lleventnotifier.h" |
159 | #include "llcallbacklist.h" | 160 | #include "llcallbacklist.h" |
@@ -1156,21 +1157,21 @@ bool LLAppViewer::cleanup() | |||
1156 | LLMortician::setZealous(TRUE); | 1157 | LLMortician::setZealous(TRUE); |
1157 | 1158 | ||
1158 | if (mQuitRequested) | 1159 | if (mQuitRequested) |
1159 | LLVoiceClient::terminate(); | 1160 | { |
1161 | LLVoiceClient::terminate(); | ||
1162 | } | ||
1160 | 1163 | ||
1161 | disconnectViewer(); | 1164 | disconnectViewer(); |
1162 | 1165 | ||
1163 | llinfos << "Viewer disconnected" << llendflush; | 1166 | llinfos << "Viewer disconnected" << llendflush; |
1164 | 1167 | ||
1165 | |||
1166 | |||
1167 | |||
1168 | |||
1169 | //this deletes all your buddies | 1168 | //this deletes all your buddies |
1170 | LLAvatarTracker::instance().reset(); | 1169 | LLAvatarTracker::instance().reset(); |
1171 | 1170 | ||
1172 | if (mQuitRequested) | 1171 | if (mQuitRequested) |
1173 | display_cleanup(); | 1172 | { |
1173 | display_cleanup(); | ||
1174 | } | ||
1174 | 1175 | ||
1175 | release_start_screen(); // just in case | 1176 | release_start_screen(); // just in case |
1176 | 1177 | ||
@@ -1190,6 +1191,9 @@ bool LLAppViewer::cleanup() | |||
1190 | //clear all the chat off the screen | 1191 | //clear all the chat off the screen |
1191 | gConsole->clear(); | 1192 | gConsole->clear(); |
1192 | 1193 | ||
1194 | // Cleaned up elsewhere | ||
1195 | gAOInvTimer = NULL; | ||
1196 | |||
1193 | //if we are doing a soft cleanup, bail here | 1197 | //if we are doing a soft cleanup, bail here |
1194 | // But clean up the messaging system first -- MC | 1198 | // But clean up the messaging system first -- MC |
1195 | if (!mQuitRequested) | 1199 | if (!mQuitRequested) |
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 1cc1871..735397e 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -197,6 +197,8 @@ | |||
197 | #include "lldxhardware.h" | 197 | #include "lldxhardware.h" |
198 | #endif | 198 | #endif |
199 | 199 | ||
200 | #include "floaterao.h" | ||
201 | |||
200 | #include "hippoGridManager.h" | 202 | #include "hippoGridManager.h" |
201 | #include "hippoLimits.h" | 203 | #include "hippoLimits.h" |
202 | // | 204 | // |
@@ -2671,6 +2673,12 @@ bool idle_startup() | |||
2671 | gStatusBar->updateElements(); | 2673 | gStatusBar->updateElements(); |
2672 | } | 2674 | } |
2673 | 2675 | ||
2676 | // Start the AO now that settings have loaded and login successful -- MC | ||
2677 | if (!gAOInvTimer) | ||
2678 | { | ||
2679 | gAOInvTimer = new AOInvTimer(); | ||
2680 | } | ||
2681 | |||
2674 | LLFirstUse::ClientTags(); | 2682 | LLFirstUse::ClientTags(); |
2675 | 2683 | ||
2676 | // Let the map know about the inventory. | 2684 | // Let the map know about the inventory. |