Commit af9a37d8 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix handling of invalid theme ids, fall back to default instead

parent 7781092b
Pipeline #219713 skipped
......@@ -35,10 +35,10 @@ ThemeRenderer::ThemeRenderer()
for (auto* theme : themes) {
if (theme->identifier() == themeIdentifier) {
provider->setCurrentTheme(theme);
loadTheme(theme);
break;
}
}
loadTheme(provider->currentTheme());
connect(m_themeProvider, &KgThemeProvider::currentThemeChanged,
this, &ThemeRenderer::loadTheme);
}
......
Supports Markdown
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