Style change signals used Qt::QueuedConnection

This commit is contained in:
Klaus Basan
2018-07-31 01:02:16 +02:00
parent d9f0066ec4
commit 4ca6bb11aa
16 changed files with 29 additions and 27 deletions

View File

@@ -64,7 +64,7 @@ namespace BlackGui
// connect
connect(this, &QDockWidget::topLevelChanged, this, &CDockWidget::onTopLevelChanged);
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CDockWidget::onStyleSheetsChanged);
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CDockWidget::onStyleSheetsChanged, Qt::QueuedConnection);
connect(this, &QDockWidget::visibilityChanged, this, &CDockWidget::onVisibilityChanged);
}