aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-20 18:31:42 +0200
committerAleric Inglewood2010-10-20 18:31:42 +0200
commit2f4e17af336c9a399a0274b7836f40fc7ff56e21 (patch)
tree1c5c9d83bab4a602b58b439ffccd758ebca54836 /linden/indra/newview/llappviewer.cpp
parentUpdate WebKit Version in About floater. (diff)
downloadmeta-impy-2f4e17af336c9a399a0274b7836f40fc7ff56e21.zip
meta-impy-2f4e17af336c9a399a0274b7836f40fc7ff56e21.tar.gz
meta-impy-2f4e17af336c9a399a0274b7836f40fc7ff56e21.tar.bz2
meta-impy-2f4e17af336c9a399a0274b7836f40fc7ff56e21.tar.xz
LindenUserDir fixes.
The LindenUserDir (~/.imprudence/first_last/) cannot be initialized before the user logged in. However, several singletons (that only can be initialized once) depend on this directory for initialization. Therefore we have to take care not to instantiate those singletons until after the user logged in. With regard to webit, this fixes the browser_profile (cache and cookies) directory that the builtin browser uses.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewer.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 9fad9f1..1d45575 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1205,7 +1205,10 @@ bool LLAppViewer::cleanup()
1205 1205
1206 //reset balance for not playing the UI-Sound 1206 //reset balance for not playing the UI-Sound
1207 //when relogging into another account 1207 //when relogging into another account
1208 gStatusBar->clearBalance(); 1208 if (gStatusBar)
1209 {
1210 gStatusBar->clearBalance();
1211 }
1209 1212
1210 if (mQuitRequested) 1213 if (mQuitRequested)
1211 { 1214 {
@@ -3282,12 +3285,15 @@ void LLAppViewer::saveFinalSnapshot()
3282 gSavedSettings.setBOOL("ShowParcelOwners", FALSE); 3285 gSavedSettings.setBOOL("ShowParcelOwners", FALSE);
3283 idle(); 3286 idle();
3284 3287
3285 std::string snap_filename = gDirUtilp->getLindenUserDir(); 3288 std::string snap_filename = gDirUtilp->getLindenUserDir(true);
3286 snap_filename += gDirUtilp->getDirDelimiter(); 3289 if (!snap_filename.empty())
3287 snap_filename += SCREEN_LAST_FILENAME; 3290 {
3288 // use full pixel dimensions of viewer window (not post-scale dimensions) 3291 snap_filename += gDirUtilp->getDirDelimiter();
3289 gViewerWindow->saveSnapshot(snap_filename, gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight(), FALSE, TRUE); 3292 snap_filename += SCREEN_LAST_FILENAME;
3290 mSavedFinalSnapshot = TRUE; 3293 // use full pixel dimensions of viewer window (not post-scale dimensions)
3294 gViewerWindow->saveSnapshot(snap_filename, gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight(), FALSE, TRUE);
3295 mSavedFinalSnapshot = TRUE;
3296 }
3291 } 3297 }
3292} 3298}
3293 3299