Commit 45a6f0a2 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

fix aurorae theme loading

I've no real idea what breaks the theme -> qml assignment but the patch
re/creates the theme object (just as the engine and component) with the theme

BUG: 316033
FIXED-IN: 4.10.2
REVIEW: 109273
parent c84e988d
...@@ -159,11 +159,8 @@ bool AuroraeFactory::reset(unsigned long changed) ...@@ -159,11 +159,8 @@ bool AuroraeFactory::reset(unsigned long changed)
const QString themeName = group.readEntry("ThemeName", "example-deco"); const QString themeName = group.readEntry("ThemeName", "example-deco");
const KConfig config("aurorae/themes/" + themeName + '/' + themeName + "rc", KConfig::FullConfig, "data"); const KConfig config("aurorae/themes/" + themeName + '/' + themeName + "rc", KConfig::FullConfig, "data");
const KConfigGroup themeGroup(&conf, themeName); const KConfigGroup themeGroup(&conf, themeName);
if (themeName != m_theme->themeName()) { if (themeName != m_themeName) {
delete m_engine; m_engine->clearComponentCache();
m_engine = new QDeclarativeEngine(this);
delete m_component;
m_component = new QDeclarativeComponent(m_engine, this);
init(); init();
// recreate all decorations // recreate all decorations
return true; return true;
......
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