diff options
-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() |