From 7ab69f3ed5bfb57097004ca55b5d9590bf00e678 Mon Sep 17 00:00:00 2001 From: LittleCoaks Date: Sat, 10 Feb 2024 02:02:16 -0500 Subject: [PATCH] remove other controllers wasn't supposed to be there - causes crash --- Source/Core/DolphinQt/NetPlay/PadMappingDialog.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/Core/DolphinQt/NetPlay/PadMappingDialog.cpp b/Source/Core/DolphinQt/NetPlay/PadMappingDialog.cpp index 0411aef98ce4..b76841184136 100644 --- a/Source/Core/DolphinQt/NetPlay/PadMappingDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/PadMappingDialog.cpp @@ -45,16 +45,9 @@ void PadMappingDialog::CreateWidgets() void PadMappingDialog::ConnectWidgets() { connect(m_button_box, &QDialogButtonBox::accepted, this, &QDialog::accept); - for (const auto& combo_group : {m_gc_boxes, m_wii_boxes}) + for (const auto& combo : m_gc_boxes) { - for (const auto& combo : combo_group) - { - connect(combo, &QComboBox::currentIndexChanged, this, &PadMappingDialog::OnMappingChanged); - } - } - for (const auto& checkbox : m_gba_boxes) - { - connect(checkbox, &QCheckBox::stateChanged, this, &PadMappingDialog::OnMappingChanged); + connect(combo, &QComboBox::currentIndexChanged, this, &PadMappingDialog::OnMappingChanged); } }