diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index 2ae6aedb5..f131bd4c0 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -466,7 +466,8 @@ void NotebookTab::mouseReleaseEvent(QMouseEvent *event) } }; - if (event->button() == Qt::MiddleButton) + if (event->button() == Qt::MiddleButton && + this->notebook_->getAllowUserTabManagement()) { if (this->rect().contains(event->pos())) {