Skip to content

Commit 6b3b775

Browse files
Fixed #604 - AutoHide widgets disapears when last open DockWidget is closed
1 parent 541db8e commit 6b3b775

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DockWidget.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ void DockWidgetPrivate::closeAutoHideDockWidgetsIfNeeded()
271271
return;
272272
}
273273

274-
if (!DockContainer->openedDockWidgets().isEmpty())
274+
// If the dock container is the dock manager, or if it is not empty, then we
275+
// don't need to do anything
276+
if ((DockContainer == _this->dockManager())
277+
|| !DockContainer->openedDockWidgets().isEmpty())
275278
{
276279
return;
277280
}

0 commit comments

Comments
 (0)