diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-10-16 20:58:29 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-10-16 20:58:29 +0200 |
commit | 2c8f42cc6ad1c67c5ee0110393c7ee756d14044e (patch) | |
tree | e5f2d5d12c95533f17ef95909b1713a70e5559ef /harmaccuweather/harmaccuplugin.cpp | |
parent | 4da9bced6a27b92d49b9fc9392946510b8519d82 (diff) | |
download | sowatch-2c8f42cc6ad1c67c5ee0110393c7ee756d14044e.tar.gz sowatch-2c8f42cc6ad1c67c5ee0110393c7ee756d14044e.zip |
Now monitoring AccuWeather's config file
Diffstat (limited to 'harmaccuweather/harmaccuplugin.cpp')
-rw-r--r-- | harmaccuweather/harmaccuplugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/harmaccuweather/harmaccuplugin.cpp b/harmaccuweather/harmaccuplugin.cpp index 9ea94bd..25821c4 100644 --- a/harmaccuweather/harmaccuplugin.cpp +++ b/harmaccuweather/harmaccuplugin.cpp @@ -21,10 +21,9 @@ QStringList HarmAccuPlugin::providers() NotificationProvider* HarmAccuPlugin::getProvider(const QString& id, QSettings& settings, QObject *parent) { + Q_UNUSED(settings); if (id != "harmaccu") return 0; - int updateTime = settings.value("updateTime").toInt(); - if (updateTime <= 0) updateTime = 2 * 3600; // Two hours by default - return new HarmAccuProvider(updateTime, parent); + return new HarmAccuProvider(parent); } Q_EXPORT_PLUGIN2(harmaccuweather, HarmAccuPlugin) |