From 785e1961d64d34a7075ed61e7b9eec1e4c700e0e Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sat, 1 Jan 2022 13:50:47 +0600 Subject: [PATCH] Fix selections being duplicated when machine type is changed --- src/qt/qt_settingsotherperipherals.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qt/qt_settingsotherperipherals.cpp b/src/qt/qt_settingsotherperipherals.cpp index 8eb849497..7fa28f812 100644 --- a/src/qt/qt_settingsotherperipherals.cpp +++ b/src/qt/qt_settingsotherperipherals.cpp @@ -30,6 +30,12 @@ void SettingsOtherPeripherals::onCurrentMachineChanged(int machineId) ui->comboBoxRTC->setEnabled(machine_has_bus(machineId, MACHINE_BUS_ISA)); ui->pushButtonConfigureRTC->setEnabled(machine_has_bus(machineId, MACHINE_BUS_ISA)); + ui->comboBoxCard1->clear(); + ui->comboBoxCard2->clear(); + ui->comboBoxCard3->clear(); + ui->comboBoxCard4->clear(); + ui->comboBoxRTC->clear(); + auto* model = ui->comboBoxRTC->model(); int d = 0; int selectedRow = 0;