diff options
-rw-r--r-- | kweather/weatherlib.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp index a7bb13c..5ca6640 100644 --- a/kweather/weatherlib.cpp +++ b/kweather/weatherlib.cpp @@ -34,6 +34,7 @@ email : geiseri@msoe.edu #include <unistd.h> #include <tdeapplication.h> #include <kpassivepopup.h> +#include <tdeconfig.h> #include "metar_parser.h" #include "stationdatabase.h" @@ -89,6 +90,12 @@ WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *parent, const char m_StationDb = stationDB; data.setAutoDelete( true ); + + // Initialize correct icon setting + TDEConfig *conf = new TDEConfig("weather_panelappletrc"); + conf->setGroup("General Options"); + WeatherIconPrivate::instance()->useIconTheme(conf->readBoolEntry("use_icon_theme", true)); + delete conf; } WeatherLib::~WeatherLib() |