Commit fc9adcdd 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

CCBUG: 457951
parent ad99cbca
Pipeline #219736 skipped
......@@ -57,10 +57,10 @@ Renderer::Renderer() {
for (auto* theme : themes) {
if (theme->identifier() == themeIdentifier) {
provider->setCurrentTheme(theme);
loadTheme(theme);
break;
}
}
loadTheme(provider->currentTheme());
QObject::connect(m_themeProvider, &KgThemeProvider::currentThemeChanged, [this](const KgTheme* theme) {
loadTheme(theme);
});
......
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