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

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kicker/applets/clock
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2005-08-11 20:53:14
Message-ID: 1123793594.057548.12600.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 445742 by aseigo:

don't write the timezone all the time. not really so necessary. just do
it on the way out and when reconfiguring manually
BUG:110473


 M  +2 -1      clock.cpp  
 M  +1 -1      zone.cpp  


--- branches/KDE/3.5/kdebase/kicker/applets/clock/clock.cpp #445741:445742
@@ -931,6 +931,7 @@
     delete zone; zone = 0;
     delete menu; menu = 0;
     config()->sync();
+    zone->writeSettings();
 }
 
 int ClockApplet::widthForHeight(int h) const
@@ -1401,6 +1402,7 @@
     if ((result >= 500) && (result < 600))
     {
         showZone(result-500);
+        zone->writeSettings();
         return;
     };
 
@@ -1517,7 +1519,6 @@
 void ClockApplet::showZone(int z)
 {
     zone->setZone(z);
-    zone->writeSettings();
     TZoffset = zone->calc_TZ_offset( zone->zone() );
     _clock->updateClock();
     _clock->forceUpdate(); /* force repaint */
--- branches/KDE/3.5/kdebase/kicker/applets/clock/zone.cpp #445741:445742
@@ -74,7 +74,7 @@
     return (z == 0 ? _defaultTZ : _remotezonelist[z-1]);
 }
 
-int Zone::calc_TZ_offset(const QString& zone, bool reset)
+int Zone::calc_TZ_offset(const QString& zone, bool /* reset */)
 {
   const KTimezone *z = zone.isEmpty() ? m_zoneDb.local() : m_zoneDb.zone(zone);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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