From 761bfc50d640413dfce2e4db9229b8c13ab8dda1 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 24 Nov 2023 13:54:19 +0100 Subject: [PATCH] Fixed #581 - FocusHighlighting is broken after detaching a dock widget --- src/DockWidgetTab.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index 040939a..420cb81 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -421,11 +421,12 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev) break; default: - if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting)) - { - d->focusController()->setDockWidgetTabPressed(false); - } - break; // do nothing + break; + } + + if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting)) + { + d->focusController()->setDockWidgetTabPressed(false); } } else if (ev->button() == Qt::MiddleButton)