https://bugs.kde.org/show_bug.cgi?id=409393

Manuel Alcaraz <manuelalcaraz...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manuelalcaraz...@gmail.com

--- Comment #2 from Manuel Alcaraz <manuelalcaraz...@gmail.com> ---
I could fix this, but I don't know what is the correct name for the weather in
/org/kde/kcmshell_clock. Something like /org/kde/kcmshell_weather?
Thanks

My actual diff (not tested):

diff --git a/dataengines/weather/weatherengine.cpp
b/dataengines/weather/weatherengine.cpp
index 53189021..301ae3f9 100644
--- a/dataengines/weather/weatherengine.cpp
+++ b/dataengines/weather/weatherengine.cpp
@@ -20,6 +20,7 @@

 #include "weatherengine.h"

+#include <QDBusConnection>
 #include <QTimer>

 #include <KSycoca>
@@ -46,6 +47,14 @@ WeatherEngine::WeatherEngine(QObject *parent, const
QVariantList& args)
     // Get the list of available plugins but don't load them
     connect(KSycoca::self(), static_cast<void (KSycoca::*)(const
QStringList&)>(&KSycoca::databaseChanged),
             this, &WeatherEngine::updateIonList);
+    
+    dbus.connect(QString(), "/org/kde/kcmshell_clock",
"org.kde.kcmshell_clock", "weatherUpdated", this, SLOT(startReconnect()));
+    dbus.connect(QStringLiteral("org.kde.Solid.PowerManagement"),
+                
QStringLiteral("/org/kde/Solid/PowerManagement/Actions/SuspendSession"),
+                
QStringLiteral("org.kde.Solid.PowerManagement.Actions.SuspendSession"),
+                 QStringLiteral("resumingFromSuspend"),
+                 this,
+                 SLOT(startReconnect()));

     updateIonList();
 }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to