fix bug where "right click -> detach group" would of an overlay dock would not remove the dockwidget side tab

This commit is contained in:
Syarif Fakhri 2022-10-25 18:03:41 +08:00
parent 54c7c7e2a5
commit fafa52a1ba

View File

@ -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);
}
}