From 664674752896cc413aeaea83526aa4fb2634e3d3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 13 Aug 2025 14:57:30 +0200 Subject: [PATCH] Ports Settings: Reset c to 0 before adding LPT devices. --- src/qt/qt_settingsports.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/qt_settingsports.cpp b/src/qt/qt_settingsports.cpp index 6b260e4fb..d072a4642 100644 --- a/src/qt/qt_settingsports.cpp +++ b/src/qt/qt_settingsports.cpp @@ -122,6 +122,8 @@ SettingsPorts::onCurrentMachineChanged(int machineId) else ui->comboBoxLptECPDMA->setEnabled(true); + c = 0; + // LPT Device QComboBox * cbox[PARALLEL_MAX] = { 0 }; QAbstractItemModel *models[PARALLEL_MAX] = { 0 };