1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

Also refresh stylesheet when chanfing application's QPalette

This commit is contained in:
Arnaud Bienner 2012-01-14 16:27:36 +01:00
parent 22d1608bdc
commit 97d8365c56

View File

@ -95,8 +95,6 @@ void StyleSheetLoader::ReplaceColor(QString* css, const QString& name,
bool StyleSheetLoader::eventFilter(QObject* obj, QEvent* event) {
if (event->type() != QEvent::PaletteChange)
return false;
if (!event->spontaneous()) // Ignore events from our setStyleSheet
return false;
QWidget* widget = qobject_cast<QWidget*>(obj);
if (!widget || !filenames_.contains(widget))