[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdelibs=5D_kdecore/date=3A_Output_kError=28=29_mess?=
From:       David Jarvie <djarvie () kde ! org>
Date:       2011-06-30 22:45:50
Message-ID: 20110630224550.C9453A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 33e9b5ef57f543372a56d53c187683ac19d99b7c by David Jarvie.
Committed on 01/07/2011 at 00:45.
Pushed by djarvie into branch 'master'.

Output kError() message if ktimezoned time zone information is missing

M  +2    -0    kdecore/date/ksystemtimezone.cpp     

http://commits.kde.org/kdelibs/33e9b5ef57f543372a56d53c187683ac19d99b7c

diff --git a/kdecore/date/ksystemtimezone.cpp b/kdecore/date/ksystemtimezone.cpp
index b30f354..782b5a5 100644
--- a/kdecore/date/ksystemtimezone.cpp
+++ b/kdecore/date/ksystemtimezone.cpp
@@ -337,6 +337,8 @@ void KSystemTimeZonesPrivate::readConfig(bool init)
     if (!init)
         config.reparseConfiguration();
     KConfigGroup group(&config, "TimeZones");
+    if (!group.exists())
+        kError(161) << "No time zone information obtained from ktimezoned";
     m_zoneinfoDir   = group.readEntry("ZoneinfoDir");
     m_zonetab       = group.readEntry("Zonetab");
     m_localZoneName = group.readEntry("LocalZone");

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic