kwin/kcmkwin
David Edmundson 14b827daaa [kcmkwin/kwindecoration] Fix save of theme name
Summary:
If a user saves a decoration that has a plugin but no theme we currently
delete the entry saving just the plugin/library.

This is an issue as on load we call:

    const QString plugin = config.readEntry("library", s_defaultPlugin);
    const QString theme = config.readEntry("theme", s_defaultTheme);

That would give us a non-default library with the default theme name,
which would be invalid.

If compiled with Breeze s_defaultTheme is blank so this ends up being
effectively the same thing. In the normal case it will neither break
nor fix anything.

Test Plan:
None.
Just happened to see it when doing a code review.

Reviewers: #kwin, vpilo

Reviewed By: vpilo

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18146
2019-01-10 15:30:59 +00:00
..
common [kcmkwin] Move effects model into a shared library 2019-01-08 15:49:20 +02:00
kwincompositing [kcmkwin] Move effects model into a shared library 2019-01-08 15:49:20 +02:00
kwindecoration [kcmkwin/kwindecoration] Fix save of theme name 2019-01-10 15:30:59 +00:00
kwindesktop [kcmkwin/desktop] Add animation option back 2019-01-08 15:49:36 +02:00
kwinoptions SVN_SILENT made messages (.desktop file) - always resolve ours 2019-01-06 05:42:41 +01:00
kwinrules Port window specific rules dialog to DBus 2018-12-31 07:58:12 +01:00
kwinscreenedges SVN_SILENT made messages (.desktop file) - always resolve ours 2018-11-22 06:02:11 +01:00
kwinscripts SVN_SILENT made messages (.desktop file) - always resolve ours 2018-11-22 06:02:11 +01:00
kwintabbox SVN_SILENT made messages (.desktop file) - always resolve ours 2018-11-22 06:02:11 +01:00
CMakeLists.txt [kcmkwin] Move effects model into a shared library 2019-01-08 15:49:20 +02:00