WeatherLib: initialize correct icon setting

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/18/head
Mavridis Philippe 3 years ago
parent c9be50cc8d
commit aaa7f2013f
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -34,6 +34,7 @@ email : geiseri@msoe.edu
#include <unistd.h> #include <unistd.h>
#include <tdeapplication.h> #include <tdeapplication.h>
#include <kpassivepopup.h> #include <kpassivepopup.h>
#include <tdeconfig.h>
#include "metar_parser.h" #include "metar_parser.h"
#include "stationdatabase.h" #include "stationdatabase.h"
@ -89,6 +90,12 @@ WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *parent, const char
m_StationDb = stationDB; m_StationDb = stationDB;
data.setAutoDelete( true ); 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() WeatherLib::~WeatherLib()

Loading…
Cancel
Save