diff options
| author | 2021-10-26 22:15:45 -0400 | |
|---|---|---|
| committer | 2021-10-26 22:15:45 -0400 | |
| commit | 40c8a8c6271b2f80bf8cb73e00daf2203640d41a (patch) | |
| tree | e3e3802e79fabee0442b36e0fc8a2e38041338f3 | |
| parent | Merge pull request #7193 from FernandoS27/idle (diff) | |
| parent | ui: fix crash when closing configure window (diff) | |
| download | yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.gz yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.tar.xz yuzu-40c8a8c6271b2f80bf8cb73e00daf2203640d41a.zip | |
Merge pull request #7186 from MightyCreak/fix-crash-configure-window
ui: fix crash when closing configure window
| -rw-r--r-- | src/yuzu/configuration/configure_dialog.cpp | 7 |
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, | |||
| 81 | SetConfiguration(); | 81 | SetConfiguration(); |
| 82 | PopulateSelectionList(); | 82 | PopulateSelectionList(); |
| 83 | 83 | ||
| 84 | connect(ui->tabWidget, &QTabWidget::currentChanged, this, | 84 | connect(ui->tabWidget, &QTabWidget::currentChanged, this, [this](int index) { |
| 85 | [this]() { debug_tab_tab->SetCurrentIndex(0); }); | 85 | if (index != -1) { |
| 86 | debug_tab_tab->SetCurrentIndex(0); | ||
| 87 | } | ||
| 88 | }); | ||
| 86 | connect(ui_tab.get(), &ConfigureUi::LanguageChanged, this, &ConfigureDialog::OnLanguageChanged); | 89 | connect(ui_tab.get(), &ConfigureUi::LanguageChanged, this, &ConfigureDialog::OnLanguageChanged); |
| 87 | connect(ui->selectorList, &QListWidget::itemSelectionChanged, this, | 90 | connect(ui->selectorList, &QListWidget::itemSelectionChanged, this, |
| 88 | &ConfigureDialog::UpdateVisibleTabs); | 91 | &ConfigureDialog::UpdateVisibleTabs); |