summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2021-10-27 04:15:45 +0200
committerGitHub <noreply@github.com>2021-10-27 04:15:45 +0200
commit40c8a8c6271b2f80bf8cb73e00daf2203640d41a (patch)
treee3e3802e79fabee0442b36e0fc8a2e38041338f3
parentMerge pull request #7193 from FernandoS27/idle (diff)
parentui: fix crash when closing configure window (diff)
downloadyuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar
yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.gz
yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.bz2
yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.lz
yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.xz
yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.zst
yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.zip
-rw-r--r--src/yuzu/configuration/configure_dialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cpp
index 4fa0c4a43..642a5f966 100644
--- a/src/yuzu/configuration/configure_dialog.cpp
+++ b/src/yuzu/configuration/configure_dialog.cpp
@@ -81,8 +81,11 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry,
SetConfiguration();
PopulateSelectionList();
- connect(ui->tabWidget, &QTabWidget::currentChanged, this,
- [this]() { debug_tab_tab->SetCurrentIndex(0); });
+ connect(ui->tabWidget, &QTabWidget::currentChanged, this, [this](int index) {
+ if (index != -1) {
+ debug_tab_tab->SetCurrentIndex(0);
+ }
+ });
connect(ui_tab.get(), &ConfigureUi::LanguageChanged, this, &ConfigureDialog::OnLanguageChanged);
connect(ui->selectorList, &QListWidget::itemSelectionChanged, this,
&ConfigureDialog::UpdateVisibleTabs);