mirror of
https://github.com/leozide/leocad
synced 2025-01-14 08:01:45 +01:00
Fixed hidden floating dockwidgets flashing at startup. Fixes #588.
This commit is contained in:
parent
cfe3fc0284
commit
28c27d8326
1 changed files with 5 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue