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

@@ -1625,6 +1625,21 @@ QList<CDockAreaWidget*> CDockContainerWidget::openedDockAreas() const
}
//============================================================================
bool CDockContainerWidget::hasOpenDockAreas() const
{
for (auto DockArea : d->DockAreas)
{
if (!DockArea->isHidden())
{
return true;
}
}
return false;
}
//============================================================================
void CDockContainerWidget::saveState(QXmlStreamWriter& s) const
{