mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixed closing tab with middle button when tab management is not allowed. (#1426)
This commit is contained in:
parent
624c578b06
commit
d99102cd23
|
@ -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()))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue