Update regardless of button.

This commit is contained in:
Cranken 2018-09-29 22:35:33 +02:00
parent 036abd4852
commit 839f78e19b

View file

@ -361,11 +361,11 @@ void NotebookTab::mousePressEvent(QMouseEvent *event)
this->mouseDown_ = true; this->mouseDown_ = true;
this->mouseDownX_ = this->getXRect().contains(event->pos()); this->mouseDownX_ = this->getXRect().contains(event->pos());
this->update();
this->notebook_->select(page); this->notebook_->select(page);
} }
this->update();
if (this->notebook_->getAllowUserTabManagement()) { if (this->notebook_->getAllowUserTabManagement()) {
switch (event->button()) { switch (event->button()) {
case Qt::RightButton: { case Qt::RightButton: {