mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 05:05:43 +08:00
Fixed #604 - AutoHide widgets disapears when last open DockWidget is closed
This commit is contained in:
parent
541db8e214
commit
6b3b7750cb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user