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