Skip to content

Commit

Permalink
Fixed #604 - AutoHide widgets disapears when last open DockWidget is …
Browse files Browse the repository at this point in the history
…closed
  • Loading branch information
githubuser0xFFFF committed Feb 12, 2024
1 parent 541db8e commit 6b3b775
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DockWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6b3b775

Please sign in to comment.