aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2021-10-26 22:15:45 -0400
committerGitHub <noreply@github.com>2021-10-26 22:15:45 -0400
commit40c8a8c6271b2f80bf8cb73e00daf2203640d41a (patch)
treee3e3802e79fabee0442b36e0fc8a2e38041338f3 /src
parent63ed7d9af7bd78edf155af198100e4f9770efcaa (diff)
parent427ce8dcef89939ba6a6392e11af83809c539e07 (diff)
Merge pull request #7186 from MightyCreak/fix-crash-configure-window
ui: fix crash when closing configure window
Diffstat (limited to 'src')
-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 4fa0c4a43b..642a5f9660 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);