diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index 1185082..4bb8ea4 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -271,7 +271,10 @@ void DockWidgetPrivate::closeAutoHideDockWidgetsIfNeeded() 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; }