Keep the event filter around so get notified of font changes at runtime

Changelog: Fix labels not picking up changes to font settings at runtime

REVIEW: 121728
BUG: 334818
This commit is contained in:
Kai Uwe Broulik 2014-12-28 23:42:34 +01:00
parent 11485738af
commit b4e1fd5f1c

View File

@ -759,13 +759,7 @@ void ThemePrivate::setThemeName(const QString &tempThemeName, bool writeSettings
if (colorsFile.isEmpty()) { if (colorsFile.isEmpty()) {
colors = 0; colors = 0;
if (qApp) {
qApp->installEventFilter(this);
}
} else { } else {
if (qApp) {
qApp->removeEventFilter(this);
}
colors = KSharedConfig::openConfig(colorsFile); colors = KSharedConfig::openConfig(colorsFile);
} }