Sidebar: enforce icon update after settings change

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

@ -27,10 +27,12 @@
#include <ksettings/dispatcher.h> #include <ksettings/dispatcher.h>
#include <kcmultidialog.h> #include <kcmultidialog.h>
#include <tdeapplication.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <tdetoolbar.h> #include <tdetoolbar.h>
#include <tdeaction.h> #include <tdeaction.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <dcopclient.h>
#include <dcopref.h> #include <dcopref.h>
sidebarwidget::sidebarwidget(TQWidget* parent, const char* name) sidebarwidget::sidebarwidget(TQWidget* parent, const char* name)
@ -61,6 +63,11 @@ sidebarwidget::sidebarwidget(TQWidget* parent, const char* name)
mainLayout->addWidget(toolbar); mainLayout->addWidget(toolbar);
mainLayout->addWidget(reportGrid); mainLayout->addWidget(reportGrid);
if(!kapp->dcopClient()->isAttached())
{
kapp->dcopClient()->attach();
}
dcopCall = new DCOPRef( "KWeatherService", "WeatherService" ); dcopCall = new DCOPRef( "KWeatherService", "WeatherService" );
} }
@ -75,7 +82,7 @@ TQWidget *sidebarwidget::viewport()
void sidebarwidget::slotRefresh() void sidebarwidget::slotRefresh()
{ {
dcopCall->send("updateAll()"); dcopCall->send("forceUpdateAll()");
} }
void sidebarwidget::slotConfigure() void sidebarwidget::slotConfigure()

Loading…
Cancel
Save