diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index 968bb6f..0ad3882 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -407,7 +407,7 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev) } else if (ev->button() == Qt::MiddleButton) { - if (CDockManager::testConfigFlag(CDockManager::MiddleMouseButtonClosesTab)) + if (CDockManager::testConfigFlag(CDockManager::MiddleMouseButtonClosesTab) && dockWidget->features().testFlag(CDockWidget::DockWidgetClosable)) { // Only attempt to close if the mouse is still // on top of the widget, to allow the user to cancel.