Fix DecorationPalette loading when kdeglobals lacks WM group

Currently, if a color scheme lacks the WM group, DecorationPalette
doesn't load it so we can fallback to kdeglobals color scheme. If
kdeglobals doesn't have WM group we get black decorations.

This change will always load the kdeglobals color scheme even if it
is missing WM group.

REVIEW: 123320
This commit is contained in:
Mika Allan Rauhala 2015-04-10 10:45:10 +02:00 committed by Martin Gräßlin
parent c17195fb28
commit 1af7ed1220

View file

@ -106,7 +106,7 @@ void DecorationPalette::update()
auto config = KSharedConfig::openConfig(m_colorScheme, KConfig::SimpleConfig);
KConfigGroup wmConfig(config, QStringLiteral("WM"));
if (!wmConfig.exists()) {
if (!wmConfig.exists() && !m_colorScheme.endsWith(QStringLiteral("/kdeglobals"))) {
qWarning() << "Invalid color scheme" << m_colorScheme << "lacks WM group";
return;
}