mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 19:46:12 -04:00
fix for settingsview being shown in a new tab
This commit is contained in:
parent
6a64ea7f91
commit
9dfcec33b4
@ -55,7 +55,7 @@ TabBar::TabBar(QWidget *parent) :
|
||||
});
|
||||
connect(app->getAction(KiwixApp::SettingAction), &QAction::triggered,
|
||||
this, [=]() {
|
||||
for (int i = 0 ; i < (mp_stackedWidget->count() - 1) ; i++) {
|
||||
for (int i = 0 ; i < mp_stackedWidget->count(); i++) {
|
||||
if (qobject_cast<SettingsView*>(mp_stackedWidget->widget(i))) {
|
||||
setCurrentIndex(i);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user