Ports Settings: Reset c to 0 before adding LPT devices.

This commit is contained in:
OBattler
2025-08-13 14:57:30 +02:00
parent a276ae94f8
commit 6646747528

View File

@@ -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 };