From f92f38e94460409f5eaf4f9e19d27fd319cf996d Mon Sep 17 00:00:00 2001 From: Saket_07 Date: Wed, 30 Dec 2020 17:34:49 +0530 Subject: [PATCH] Settings tab will now be activated if already opened. --- src/tabbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 7c635ea..da0ccfa 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -50,6 +50,7 @@ TabBar::TabBar(QWidget *parent) : connect(app->getAction(KiwixApp::SettingAction), &QAction::triggered, this, [=]() { if (KiwixApp::instance()->getSettingsManager()->isSettingsViewdisplayed()) { + setCurrentIndex(m_settingsIndex); return; } auto index = currentIndex() + 1;