From c43c6f39cfb2a230597abace25e123210573e32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 3 Mar 2013 21:46:43 +0100 Subject: [PATCH] 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 --- clients/aurorae/src/aurorae.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index ccbb1cb6eb..ef0ad112b6 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -159,11 +159,8 @@ bool AuroraeFactory::reset(unsigned long changed) const QString themeName = group.readEntry("ThemeName", "example-deco"); const KConfig config("aurorae/themes/" + themeName + '/' + themeName + "rc", KConfig::FullConfig, "data"); const KConfigGroup themeGroup(&conf, themeName); - if (themeName != m_theme->themeName()) { - delete m_engine; - m_engine = new QDeclarativeEngine(this); - delete m_component; - m_component = new QDeclarativeComponent(m_engine, this); + if (themeName != m_themeName) { + m_engine->clearComponentCache(); init(); // recreate all decorations return true;