From d99102cd2351778e985f3a13ff4e8f0ed291e389 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 1 Dec 2019 13:00:06 +0300 Subject: [PATCH] Fixed closing tab with middle button when tab management is not allowed. (#1426) --- src/widgets/helper/NotebookTab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())) {