Fixed detaching of auto hide widgets in a floating widget

This commit is contained in:
Uwe Kindler 2023-07-10 10:10:37 +02:00
parent 0a6c58fd66
commit 6924e69b6b

View File

@ -684,8 +684,10 @@ void CDockAreaTitleBar::setAreaFloating()
{
// If this is the last dock area in a dock container it does not make
// sense to move it to a new floating widget and leave this one
// empty
if (d->DockArea->dockContainer()->isFloating() && d->DockArea->dockContainer()->dockAreaCount() == 1)
// empty.
auto DockContainer = d->DockArea->dockContainer();
if (DockContainer->isFloating() && DockContainer->dockAreaCount() == 1
&& !d->DockArea->isAutoHide())
{
return;
}