Commit 443b028a authored by Cyril Rossi's avatar Cyril Rossi

KCM Colors fix apply button always disabled

Summary:
BUG: 418604

This is similar to D27384

Test Plan:
In `kdeglobals` configuration file :

* Edit `ColorScheme` in group `General` to a non existing value
* Open the KCM, the default color scheme is selected with a warning message,
* Select a different scheme, the apply button stay disabled forever.

Reviewers: #plasma, ervin, bport, meven, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27944

(cherry picked from commit 4d33b827)
parent b59c0d01
......@@ -339,6 +339,11 @@ void KCMColors::load()
group = KConfigGroup(&cfg, "X11");
m_applyToAlien = group.readEntry("exportKDEColors", true);
}
// If need save is true at the end of load() function, it will stay disabled forever.
// setSelectedScheme() call due to unexisting scheme name in kdeglobals will trigger a need to save.
// this following call ensure the apply button will work properly.
setNeedsSave(false);
}
void KCMColors::save()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment