Browse Source
Merge pull request #7186 from MightyCreak/fix-crash-configure-window
ui: fix crash when closing configure window
pull/15/merge
Ameer J
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
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); |
|
|
|
|