diff options
author | Mavridis Philippe <[email protected]> | 2022-01-14 13:16:15 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2022-01-14 13:19:13 +0200 |
commit | 3ab50ccac517636b5420072735574c8009e306cd (patch) | |
tree | d1ade772ff50e7fe0d43f29f885903476bf92213 /kweather | |
parent | 621ec8bf1d71176a1ea5cf5815dcd8312902e44b (diff) | |
download | tdetoys-3ab50ccac517636b5420072735574c8009e306cd.tar.gz tdetoys-3ab50ccac517636b5420072735574c8009e306cd.zip |
Sidebar: enforce icon update after settings change
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'kweather')
-rw-r--r-- | kweather/sidebarwidget.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kweather/sidebarwidget.cpp b/kweather/sidebarwidget.cpp index 693f525..7c9a6e7 100644 --- a/kweather/sidebarwidget.cpp +++ b/kweather/sidebarwidget.cpp @@ -27,10 +27,12 @@ #include <ksettings/dispatcher.h> #include <kcmultidialog.h> +#include <tdeapplication.h> #include <kiconloader.h> #include <tdetoolbar.h> #include <tdeaction.h> #include <tdelocale.h> +#include <dcopclient.h> #include <dcopref.h> sidebarwidget::sidebarwidget(TQWidget* parent, const char* name) @@ -61,6 +63,11 @@ sidebarwidget::sidebarwidget(TQWidget* parent, const char* name) mainLayout->addWidget(toolbar); mainLayout->addWidget(reportGrid); + if(!kapp->dcopClient()->isAttached()) + { + kapp->dcopClient()->attach(); + } + dcopCall = new DCOPRef( "KWeatherService", "WeatherService" ); } @@ -75,7 +82,7 @@ TQWidget *sidebarwidget::viewport() void sidebarwidget::slotRefresh() { - dcopCall->send("updateAll()"); + dcopCall->send("forceUpdateAll()"); } void sidebarwidget::slotConfigure() |