Commit cf49d415 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Look and feel KCM] Sync color group after copying over color file values

BUG: 370162
FIXED-IN: 5.12.0

Differential Revision: https://phabricator.kde.org/D10056
parent 699a0d50
......@@ -444,7 +444,6 @@ void KCMLookandFeel::setColors(const QString &scheme, const QString &colorFile)
}
KConfigGroup configGroup(&m_config, "General");
configGroup.writeEntry("ColorScheme", scheme);
configGroup.sync();
KSharedConfigPtr conf = KSharedConfig::openConfig(colorFile);
foreach (const QString &grp, conf->groupList()) {
......@@ -452,6 +451,8 @@ void KCMLookandFeel::setColors(const QString &scheme, const QString &colorFile)
KConfigGroup cg2(&m_config, grp);
cg.copyTo(&cg2);
}
configGroup.sync();
KGlobalSettings::self()->emitChange(KGlobalSettings::PaletteChanged);
}
......
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