quick fix tabbar navigation

Add the execution of normal mousePressEvent() if it's not the middlebutton.
Without this the navigation between tab is impossible.
This commit is contained in:
luddens 2019-09-10 13:25:14 +02:00
parent 582febd5f7
commit 684da69ac7

View File

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