Fixed error caused by broken merge request

This commit is contained in:
Uwe Kindler 2021-11-17 07:51:14 +01:00
parent 2c0d899b2a
commit 0270993782

View File

@ -407,7 +407,7 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
} }
else if (ev->button() == Qt::MiddleButton) else if (ev->button() == Qt::MiddleButton)
{ {
if (CDockManager::testConfigFlag(CDockManager::MiddleMouseButtonClosesTab) && dockWidget->features().testFlag(CDockWidget::DockWidgetClosable)) if (CDockManager::testConfigFlag(CDockManager::MiddleMouseButtonClosesTab) && d->DockWidget->features().testFlag(CDockWidget::DockWidgetClosable))
{ {
// Only attempt to close if the mouse is still // Only attempt to close if the mouse is still
// on top of the widget, to allow the user to cancel. // on top of the widget, to allow the user to cancel.