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:
parent
c17195fb28
commit
1af7ed1220
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue