Merge pull request #244 from kiwix/quick-fix-tabbar

[URGENT] quick fix tabbar navigation
This commit is contained in:
Matthieu Gautier 2019-09-10 13:57:20 +02:00 committed by GitHub
commit c5b147dcd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,5 +240,7 @@ void TabBar::mousePressEvent(QMouseEvent *event)
{ {
if (event->button() == Qt::MiddleButton) { if (event->button() == Qt::MiddleButton) {
closeTab(this->tabAt(event->pos())); closeTab(this->tabAt(event->pos()));
} else {
QTabBar::mousePressEvent(event);
} }
} }