From 772c1321e4e95a415b9de700c3474f81f98b5482 Mon Sep 17 00:00:00 2001 From: drw Date: Fri, 22 Nov 2002 01:48:26 +0000 Subject: Make sure update frequency is initialized 1st time in (thanks to Simon) --- (limited to 'noncore/todayplugins') 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,14 +79,14 @@ void WeatherPluginWidget::timerEvent( QTimerEvent *e ) void WeatherPluginWidget::retreiveData() { - startTimer( frequency * 60000 ); - Config config( "todayweatherplugin"); config.setGroup( "Config" ); location = config.readEntry( "Location", "" ); useMetric = config.readBoolEntry( "Metric", TRUE ); frequency = config.readNumEntry( "Frequency", 5 ); + + startTimer( frequency * 60000 ); localFile = "/tmp/"; localFile.append( location ); -- cgit v0.9.0.2