Fixed #604 - AutoHide widgets disapears when last open DockWidget is closed

This commit is contained in:
Uwe Kindler 2024-02-12 08:18:33 +01:00
parent 541db8e214
commit 6b3b7750cb

View File

@ -271,7 +271,10 @@ void DockWidgetPrivate::closeAutoHideDockWidgetsIfNeeded()
return; return;
} }
if (!DockContainer->openedDockWidgets().isEmpty()) // If the dock container is the dock manager, or if it is not empty, then we
// don't need to do anything
if ((DockContainer == _this->dockManager())
|| !DockContainer->openedDockWidgets().isEmpty())
{ {
return; return;
} }