From 6924e69b6badd737690c1ecc559a1b320b251684 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 10 Jul 2023 10:10:37 +0200 Subject: [PATCH] Fixed detaching of auto hide widgets in a floating widget --- src/DockAreaTitleBar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DockAreaTitleBar.cpp b/src/DockAreaTitleBar.cpp index defb664..3950739 100644 --- a/src/DockAreaTitleBar.cpp +++ b/src/DockAreaTitleBar.cpp @@ -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; }