1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-01 02:42:39 +08:00

Fixed #581 - FocusHighlighting is broken after detaching a dock widget

This commit is contained in:
Uwe Kindler 2023-11-24 13:54:19 +01:00
parent 59b4dfb89c
commit 761bfc50d6

View File

@ -421,12 +421,13 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
break; break;
default: default:
break;
}
if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting)) if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting))
{ {
d->focusController()->setDockWidgetTabPressed(false); d->focusController()->setDockWidgetTabPressed(false);
} }
break; // do nothing
}
} }
else if (ev->button() == Qt::MiddleButton) else if (ev->button() == Qt::MiddleButton)
{ {