diff -r 93b982ccede2 -r 5daf16870df6 demos/mainwindow/mainwindow.cpp --- a/demos/mainwindow/mainwindow.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/demos/mainwindow/mainwindow.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -329,7 +329,7 @@ BlueTitleBar *titlebar = new BlueTitleBar(swatch); swatch->setTitleBarWidget(titlebar); connect(swatch, SIGNAL(topLevelChanged(bool)), titlebar, SLOT(updateMask())); - connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask())); + connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask()), Qt::QueuedConnection); #ifdef Q_WS_QWS QPalette pal = palette();