diff options
author | McCabe Maxsted | 2010-08-02 16:39:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-02 16:39:41 -0700 |
commit | 1cf5be2fe88cc47f07a63030593ae22ae21c9817 (patch) | |
tree | c4d8795b5dbb997a1e0ef64a4fbaa326f32a123c /linden/indra/newview/viewertime.cpp | |
parent | Fixed extra space between timw and AM/PM in timestamps (diff) | |
download | meta-impy-1cf5be2fe88cc47f07a63030593ae22ae21c9817.zip meta-impy-1cf5be2fe88cc47f07a63030593ae22ae21c9817.tar.gz meta-impy-1cf5be2fe88cc47f07a63030593ae22ae21c9817.tar.bz2 meta-impy-1cf5be2fe88cc47f07a63030593ae22ae21c9817.tar.xz |
Fixed time format settings not being saved
Diffstat (limited to 'linden/indra/newview/viewertime.cpp')
-rw-r--r-- | linden/indra/newview/viewertime.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/viewertime.cpp b/linden/indra/newview/viewertime.cpp index 57348f0..06dd91a 100644 --- a/linden/indra/newview/viewertime.cpp +++ b/linden/indra/newview/viewertime.cpp | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include "llappviewer.h" // for gPacificDaylightTime | 33 | #include "llappviewer.h" // for gPacificDaylightTime |
34 | #include "lltrans.h" | 34 | #include "lltrans.h" |
35 | #include "llviewercontrol.h" | ||
35 | #include "viewertime.h" | 36 | #include "viewertime.h" |
36 | 37 | ||
37 | // system includes | 38 | // system includes |
@@ -43,6 +44,7 @@ | |||
43 | // TODO: support multiple date formats | 44 | // TODO: support multiple date formats |
44 | 45 | ||
45 | ViewerTime* gViewerTime = 0; | 46 | ViewerTime* gViewerTime = 0; |
47 | // We use statics here for speed reasons | ||
46 | bool ViewerTime::sUse24HourTime = false; | 48 | bool ViewerTime::sUse24HourTime = false; |
47 | bool ViewerTime::sUseUTCTime = false; | 49 | bool ViewerTime::sUseUTCTime = false; |
48 | 50 | ||
@@ -257,4 +259,7 @@ void ViewerTime::updateTimeFormat(const U32& index) | |||
257 | sUseUTCTime = false; | 259 | sUseUTCTime = false; |
258 | break; | 260 | break; |
259 | } | 261 | } |
262 | |||
263 | gSavedSettings.setBOOL("Use24HourTime", sUse24HourTime); | ||
264 | gSavedSettings.setBOOL("UseUTCTime", sUseUTCTime); | ||
260 | } | 265 | } |