BUG: 179684
BUG: 181451 sync the config, and connect the config file's create signal so Plasma::Theme::themeChanged() work across process svn path=/trunk/KDE/kdelibs/; revision=933145
This commit is contained in:
parent
7226f0a731
commit
daef833362
@ -264,6 +264,7 @@ Theme::Theme(QObject *parent)
|
||||
|
||||
//FIXME: if/when kconfig gets change notification, this will be unecessary
|
||||
KDirWatch::self()->addFile(KStandardDirs::locateLocal("config", ThemePrivate::themeRcFile));
|
||||
connect(KDirWatch::self(), SIGNAL(created(QString)), this, SLOT(settingsFileChanged(QString)));
|
||||
connect(KDirWatch::self(), SIGNAL(dirty(QString)), this, SLOT(settingsFileChanged(QString)));
|
||||
}
|
||||
|
||||
@ -390,6 +391,7 @@ void ThemePrivate::setThemeName(const QString &tempThemeName, bool writeSettings
|
||||
} else {
|
||||
cg.writeEntry("name", themeName);
|
||||
}
|
||||
cg.sync();
|
||||
}
|
||||
|
||||
//check for expired cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user