From 6b3b7750cb9c04620b2d6494c0c43188f4461cb7 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 12 Feb 2024 08:18:33 +0100 Subject: [PATCH] Fixed #604 - AutoHide widgets disapears when last open DockWidget is closed --- src/DockWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }