author | harlekin <harlekin> | 2003-02-11 18:37:03 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-02-11 18:37:03 (UTC) |
commit | cb85b004afe2750733cef1663961539f6a3968e6 (patch) (unidiff) | |
tree | 6084bf1fb78375325938f96077e0faa03ece955f /core/settings/citytime | |
parent | ec6795c6a15a3b9f4721b628d48366097da9c903 (diff) | |
download | opie-cb85b004afe2750733cef1663961539f6a3968e6.zip opie-cb85b004afe2750733cef1663961539f6a3968e6.tar.gz opie-cb85b004afe2750733cef1663961539f6a3968e6.tar.bz2 |
fix bug #644, ampm vs 24 h handling
-rw-r--r-- | core/settings/citytime/citytime.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/settings/citytime/citytime.cpp b/core/settings/citytime/citytime.cpp index 5dc9b02..b359ae1 100644 --- a/core/settings/citytime/citytime.cpp +++ b/core/settings/citytime/citytime.cpp | |||
@@ -40,25 +40,27 @@ | |||
40 | #include <qtoolbutton.h> | 40 | #include <qtoolbutton.h> |
41 | #include <qlayout.h> | 41 | #include <qlayout.h> |
42 | 42 | ||
43 | #include <stdlib.h> | 43 | #include <stdlib.h> |
44 | 44 | ||
45 | CityTime::CityTime( QWidget *parent, const char* name, | 45 | CityTime::CityTime( QWidget *parent, const char* name, |
46 | WFlags fl ) | 46 | WFlags fl ) |
47 | : CityTimeBase( parent, name, fl ), | 47 | : CityTimeBase( parent, name, fl ), |
48 | strRealTz(0), | 48 | strRealTz(0), |
49 | bAdded(false) | 49 | bAdded(false) |
50 | { | 50 | { |
51 | Config config( "qpe" ); | 51 | Config config( "qpe" ); |
52 | config.setGroup( "Time" ); | ||
52 | bWhichClock = config.readBoolEntry( "AMPM", TRUE ); | 53 | bWhichClock = config.readBoolEntry( "AMPM", TRUE ); |
54 | qDebug( QString("%1").arg(bWhichClock) ); | ||
53 | frmMap->changeClock( bWhichClock ); | 55 | frmMap->changeClock( bWhichClock ); |
54 | 56 | ||
55 | char *pEnv; | 57 | char *pEnv; |
56 | pEnv = NULL; | 58 | pEnv = NULL; |
57 | pEnv = getenv("TZ"); | 59 | pEnv = getenv("TZ"); |
58 | if ( pEnv ) | 60 | if ( pEnv ) |
59 | strRealTz = pEnv; | 61 | strRealTz = pEnv; |
60 | pEnv = NULL; | 62 | pEnv = NULL; |
61 | pEnv = getenv("HOME"); | 63 | pEnv = getenv("HOME"); |
62 | if ( pEnv ) | 64 | if ( pEnv ) |
63 | strHome = pEnv; | 65 | strHome = pEnv; |
64 | // append the labels to their respective lists... | 66 | // append the labels to their respective lists... |