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