Review Request 127319: [Weather widget] Fix occasional empty widget after configuring a new weather station

Friedrich W. H. Kossebau kossebau at kde.org
Fri Mar 11 10:53:02 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127319/
-----------------------------------------------------------

(Updated March 11, 2016, 10:53 a.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma, Kai Uwe Broulik and Marco Martin.


Changes
-------

Submitted with commit d5b8faa0e07be47f6bc2177d6e7ae40df873c014 by Friedrich W. H. Kossebau to branch Plasma/5.6.


Repository: kdeplasma-addons


Description
-------

Possible root of the error was that accidentally disconnecting not with the old, but the new source id from the dataengine before connecting with the new source id was resulting in some bogus state. Not really investigated in detail after seeing the mistake.

The patch reworks things by no longer setting the config one-by-one via properties before then signalling configchanged, but by passing the set of changed config values as separate data to store them in the KConfig object, then triggering the applet to reset with its old work values before then loading the new config values and starting to use those. That way on disconnecting we still have the old source id available now and properly disconnect.

So hopefully the occasional empty widget after setting a weather station should be gone now.


Diffs
-----

  applets/weather/package/contents/ui/configGeneral.qml a5966cd 
  applets/weather/weatherapplet.h e37006a 
  applets/weather/weatherapplet.cpp 957f17d 
  libs/plasmaweather/weatherpopupapplet.h 65c8edb 
  libs/plasmaweather/weatherpopupapplet.cpp 960ca60 

Diff: https://git.reviewboard.kde.org/r/127319/diff/


Testing
-------

10/10 times configuring a new weather station (also from different services) worked & did not result in an empty widget (but then before I also only seldomly saw that).


Thanks,

Friedrich W. H. Kossebau

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160311/ac7b6d5b/attachment-0001.html>


More information about the Plasma-devel mailing list