From 684da69ac7e27a6c926a6f64c6b6d5b159b7d95e Mon Sep 17 00:00:00 2001 From: luddens Date: Tue, 10 Sep 2019 13:25:14 +0200 Subject: [PATCH] quick fix tabbar navigation Add the execution of normal mousePressEvent() if it's not the middlebutton. Without this the navigation between tab is impossible. --- src/tabbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 12bd3a9..def6789 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -240,5 +240,7 @@ void TabBar::mousePressEvent(QMouseEvent *event) { if (event->button() == Qt::MiddleButton) { closeTab(this->tabAt(event->pos())); + } else { + QTabBar::mousePressEvent(event); } } \ No newline at end of file