mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #7186 from MightyCreak/fix-crash-configure-window
ui: fix crash when closing configure window
This commit is contained in:
commit
40c8a8c627
1 changed files with 5 additions and 2 deletions
|
@ -81,8 +81,11 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry,
|
||||||
SetConfiguration();
|
SetConfiguration();
|
||||||
PopulateSelectionList();
|
PopulateSelectionList();
|
||||||
|
|
||||||
connect(ui->tabWidget, &QTabWidget::currentChanged, this,
|
connect(ui->tabWidget, &QTabWidget::currentChanged, this, [this](int index) {
|
||||||
[this]() { debug_tab_tab->SetCurrentIndex(0); });
|
if (index != -1) {
|
||||||
|
debug_tab_tab->SetCurrentIndex(0);
|
||||||
|
}
|
||||||
|
});
|
||||||
connect(ui_tab.get(), &ConfigureUi::LanguageChanged, this, &ConfigureDialog::OnLanguageChanged);
|
connect(ui_tab.get(), &ConfigureUi::LanguageChanged, this, &ConfigureDialog::OnLanguageChanged);
|
||||||
connect(ui->selectorList, &QListWidget::itemSelectionChanged, this,
|
connect(ui->selectorList, &QListWidget::itemSelectionChanged, this,
|
||||||
&ConfigureDialog::UpdateVisibleTabs);
|
&ConfigureDialog::UpdateVisibleTabs);
|
||||||
|
|
Loading…
Reference in a new issue