aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-07-30 17:08:24 -0700
committerMcCabe Maxsted2010-07-30 17:08:24 -0700
commitc5b42b7e783743203d08cc69ac922431cfd58e4d (patch)
tree3125fd9590c3400d87481188aaab50de4b71650b /linden/indra/newview/llappviewer.cpp
parentDon't play typing anim when using a default channel other than 0 (diff)
downloadmeta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.zip
meta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.tar.gz
meta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.tar.bz2
meta-impy-c5b42b7e783743203d08cc69ac922431cfd58e4d.tar.xz
Added option in Preferences > General for setting the default time to 12 hour/24 hour/UTC. Side effects: moved crash logger settings to advanced prefs, fixed french date translations, past/future dates and times still need to be correctly formatted
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewer.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index c03c63d..cba1af1 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -168,7 +168,7 @@
168#include "llimview.h" 168#include "llimview.h"
169#include "llviewerthrottle.h" 169#include "llviewerthrottle.h"
170#include "llparcel.h" 170#include "llparcel.h"
171 171#include "viewertime.h"
172 172
173#include "llinventoryview.h" 173#include "llinventoryview.h"
174 174
@@ -433,6 +433,9 @@ static void settings_to_globals()
433 LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); 433 LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") );
434 434
435 LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); 435 LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt");
436
437 ViewerTime::sUse24HourTime = gSavedSettings.getBOOL("Use24HourTime");
438 ViewerTime::sUseUTCTime = gSavedSettings.getBOOL("UseUTCTime");
436} 439}
437 440
438static void settings_modify() 441static void settings_modify()
@@ -1243,6 +1246,15 @@ bool LLAppViewer::cleanup()
1243 LLWorldMap::getInstance()->reset(); // release any images 1246 LLWorldMap::getInstance()->reset(); // release any images
1244 1247
1245 LLCalc::cleanUp(); 1248 LLCalc::cleanUp();
1249
1250 delete gHippoGridManager;
1251 gHippoGridManager = NULL;
1252
1253 delete gHippoLimits;
1254 gHippoLimits = NULL;
1255
1256 delete gViewerTime;
1257 gViewerTime = NULL;
1246 1258
1247 llinfos << "Global stuff deleted" << llendflush; 1259 llinfos << "Global stuff deleted" << llendflush;
1248 1260
@@ -1457,7 +1469,7 @@ bool LLAppViewer::cleanup()
1457 } 1469 }
1458 1470
1459 // Delete workers first 1471 // Delete workers first
1460 // shotdown all worker threads before deleting them in case of co-dependencies 1472 // shutdown all worker threads before deleting them in case of co-dependencies
1461 sTextureCache->shutdown(); 1473 sTextureCache->shutdown();
1462 sTextureFetch->shutdown(); 1474 sTextureFetch->shutdown();
1463 sImageDecodeThread->shutdown(); 1475 sImageDecodeThread->shutdown();
@@ -2297,6 +2309,12 @@ bool LLAppViewer::initWindow()
2297 LLTrans::parseStrings("strings.xml"); 2309 LLTrans::parseStrings("strings.xml");
2298 LLUITrans::parseStrings("ui_strings.xml"); 2310 LLUITrans::parseStrings("ui_strings.xml");
2299 2311
2312 // Start up the viewer's clock -- MC
2313 if (!gViewerTime)
2314 {
2315 gViewerTime = new ViewerTime();
2316 }
2317
2300 // Show watch cursor 2318 // Show watch cursor
2301 gViewerWindow->setCursor(UI_CURSOR_WAIT); 2319 gViewerWindow->setCursor(UI_CURSOR_WAIT);
2302 2320