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

Marco Martin <notm...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kdeplasma-addons/-/commi
                   |                            |t/b36536dbe5e0385e392cea102
                   |                            |027c16b9f619479
             Status|ASSIGNED                    |RESOLVED

--- Comment #15 from Marco Martin <notm...@gmail.com> ---
Git commit b36536dbe5e0385e392cea102027c16b9f619479 by Marco Martin.
Committed on 17/03/2025 at 09:23.
Pushed by mart into branch 'master'.

applets/weather: Fix config save

Move the call to setDefaultUnits() from the constructor to init()

setDefaulktUnits() accesses config() which is forbidden to access
from the Applet constructor, as at that point the applet is not
in the containment/corona hyerarchy yet and can't find the proper place
in the config file.
When this happens, the applet will start to read/write in plasmarc itself
so it won't even be saved in the appletsrc layout

M  +5    -2    applets/weather/weatherapplet.cpp
M  +1    -0    applets/weather/weatherapplet.h

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/b36536dbe5e0385e392cea102027c16b9f619479

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

Reply via email to