Fixed closing tab with middle button when tab management is not allowed. (#1426)

This commit is contained in:
23rd 2019-12-01 13:00:06 +03:00 committed by pajlada
parent 624c578b06
commit d99102cd23

View file

@ -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()))
{