Fixed nullptr access in DockWidgetTab

This commit is contained in:
Uwe Kindler 2023-06-27 10:18:38 +02:00
parent 34cc91a9af
commit 09e4e6fa5a

View File

@ -417,7 +417,10 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
break; break;
default: default:
d->focusController()->setDockWidgetTabPressed(false); if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting))
{
d->focusController()->setDockWidgetTabPressed(false);
}
break; // do nothing break; // do nothing
} }
} }