Use installEventFilter calls properly
Should fix some font-change related bugs
This commit is contained in:
parent
82e9bd46d0
commit
461042a240
@ -56,7 +56,7 @@ Units::Units (QObject *parent)
|
||||
themeChanged();
|
||||
connect(&m_theme, SIGNAL(themeChanged()),
|
||||
this, SLOT(themeChanged()));
|
||||
installEventFilter(qApp);
|
||||
qApp->installEventFilter(this);
|
||||
|
||||
const QString configFile = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + plasmarc;
|
||||
KDirWatch::self()->addFile(configFile);
|
||||
|
@ -604,11 +604,11 @@ void ThemePrivate::setThemeName(const QString &tempThemeName, bool writeSettings
|
||||
if (colorsFile.isEmpty()) {
|
||||
colors = 0;
|
||||
if (qApp) {
|
||||
installEventFilter(qApp);
|
||||
qApp->installEventFilter(this);
|
||||
}
|
||||
} else {
|
||||
if (qApp) {
|
||||
removeEventFilter(qApp);
|
||||
qApp->removeEventFilter(this);
|
||||
}
|
||||
colors = KSharedConfig::openConfig(colorsFile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user