Don't switch tab if only right mouse is pressed on other tab.

This commit is contained in:
Cranken 2018-09-29 22:30:31 +02:00
parent f25f31a837
commit 036abd4852

View file

@ -357,12 +357,14 @@ bool NotebookTab::shouldDrawXButton()
void NotebookTab::mousePressEvent(QMouseEvent *event) void NotebookTab::mousePressEvent(QMouseEvent *event)
{ {
if (event->button() == Qt::LeftButton) {
this->mouseDown_ = true; this->mouseDown_ = true;
this->mouseDownX_ = this->getXRect().contains(event->pos()); this->mouseDownX_ = this->getXRect().contains(event->pos());
this->update(); this->update();
this->notebook_->select(page); this->notebook_->select(page);
}
if (this->notebook_->getAllowUserTabManagement()) { if (this->notebook_->getAllowUserTabManagement()) {
switch (event->button()) { switch (event->button()) {