From f57ef7a819e9a149554f545b0b12441543dd8b75 Mon Sep 17 00:00:00 2001 From: garakmon Date: Tue, 21 Apr 2020 16:15:36 -0400 Subject: [PATCH] change main tab for every click --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2e90506a..69594192 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1208,6 +1208,8 @@ void MainWindow::on_action_Exit_triggered() void MainWindow::on_mainTabBar_tabBarClicked(int index) { + ui->mainTabBar->setCurrentIndex(index); + int tabIndexToStackIndex[5] = {0, 0, 1, 2, 3}; ui->mainStackedWidget->setCurrentIndex(tabIndexToStackIndex[index]);