Fixed issue #378 - Don't show empty floating containers on startup

This commit is contained in:
Uwe Kindler
2021-12-06 09:42:12 +01:00
parent 0df1a41a1d
commit 2afe62ec77
4 changed files with 37 additions and 1 deletions

View File

@@ -762,7 +762,12 @@ void CDockManager::showEvent(QShowEvent *event)
for (auto FloatingWidget : d->UninitializedFloatingWidgets)
{
FloatingWidget->show();
// Check, if someone closed a floating dock widget before the dock
// manager is shown
if (FloatingWidget->dockContainer()->hasOpenDockAreas())
{
FloatingWidget->show();
}
}
d->UninitializedFloatingWidgets.clear();
}