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

Oliver Beard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-login-manager/-/c |ma/plasma-login-manager/-/c
                   |ommit/b5385afa096125b08c42c |ommit/c0aa29235ee285344ff7a
                   |d7462824765a6cb0ac8         |1b3ac8b12172a696756

--- Comment #3 from Oliver Beard <[email protected]> ---
Git commit c0aa29235ee285344ff7a1b3ac8b12172a696756 by Oliver Beard.
Committed on 27/02/2026 at 14:19.
Pushed by olib into branch 'Plasma/6.6'.

frontend/kcm: Fix error when saving default, empty config

We save our config by writing to KConfig set to use a temp file. When we sync,
if the config isn't dirty and would be empty, then the file isn't created.

Later code assumes that the file will be created, and causes an error that
prevents saving settings.

We need to track if config was dirty before sync and if it was, then it would
be empty and no file saved, so we shouldn't even try to read back the temp file
to pass to the auth helper.
FIXED-IN: 6.6.2


(cherry picked from commit b5385afa096125b08c42cd7462824765a6cb0ac8)

Co-authored-by: Oliver Beard <[email protected]>

M  +19   -9    src/frontend/kcm/kcm.cpp

https://invent.kde.org/plasma/plasma-login-manager/-/commit/c0aa29235ee285344ff7a1b3ac8b12172a696756

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

Reply via email to