summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/weather/weatherpluginwidget.cpp
Side-by-side diff
Diffstat (limited to 'noncore/todayplugins/weather/weatherpluginwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/todayplugins/weather/weatherpluginwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/todayplugins/weather/weatherpluginwidget.cpp b/noncore/todayplugins/weather/weatherpluginwidget.cpp
index 6444ebf..f4ea0f2 100644
--- a/noncore/todayplugins/weather/weatherpluginwidget.cpp
+++ b/noncore/todayplugins/weather/weatherpluginwidget.cpp
@@ -79,8 +79,6 @@ void WeatherPluginWidget::timerEvent( QTimerEvent *e )
void WeatherPluginWidget::retreiveData()
{
- startTimer( frequency * 60000 );
-
Config config( "todayweatherplugin");
config.setGroup( "Config" );
@@ -88,6 +86,8 @@ void WeatherPluginWidget::retreiveData()
useMetric = config.readBoolEntry( "Metric", TRUE );
frequency = config.readNumEntry( "Frequency", 5 );
+ startTimer( frequency * 60000 );
+
localFile = "/tmp/";
localFile.append( location );
localFile.append( ".TXT" );