Fixed closing tab with middle button when tab management is not allowed. (#1426)
This commit is contained in:
@@ -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()))
|
if (this->rect().contains(event->pos()))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user