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
This commit is contained in:
parent
b769b53cb7
commit
c43c6f39cf
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue