From fafa52a1baf10e476c97e7f045691e7c0847d42c Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Tue, 25 Oct 2022 18:03:41 +0800 Subject: [PATCH] fix bug where "right click -> detach group" would of an overlay dock would not remove the dockwidget side tab --- src/DockAreaTitleBar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DockAreaTitleBar.cpp b/src/DockAreaTitleBar.cpp index cb2860f..bc047da 100644 --- a/src/DockAreaTitleBar.cpp +++ b/src/DockAreaTitleBar.cpp @@ -412,6 +412,11 @@ void CDockAreaTitleBar::onUndockButtonClicked() { if (d->DockArea->features().testFlag(CDockWidget::DockWidgetFloatable)) { + if (d->DockArea->autoHideDockContainer()) + { + d->DockArea->autoHideDockContainer()->cleanupAndDelete(); + } + d->makeAreaFloating(mapFromGlobal(QCursor::pos()), DraggingInactive); } }