Fixed hidden floating dockwidgets flashing at startup. Fixes #588.

This commit is contained in:
Leonardo Zide 2021-01-02 10:49:56 -08:00
parent cfe3fc0284
commit 28c27d8326

View file

@ -826,12 +826,11 @@ void lcMainWindow::EnableWindowFlags(bool Detached)
if (Detached)
{
QDockWidget* DockWidget = qobject_cast<QDockWidget*>(sender());
DockWidget->setWindowFlags(Qt::CustomizeWindowHint |
Qt::Window |
Qt::WindowMinimizeButtonHint |
Qt::WindowMaximizeButtonHint |
Qt::WindowCloseButtonHint);
DockWidget->show();
DockWidget->setWindowFlags(Qt::CustomizeWindowHint | Qt::Window | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint);
if (isVisible())
DockWidget->show();
}
}