Standardize fdc_type into fdc_current
Also make it into an array
This commit is contained in:
@@ -57,7 +57,7 @@ SettingsStorageControllers::save()
|
||||
scsi_card_current[i] = cbox->currentData().toInt();
|
||||
}
|
||||
hdc_current = ui->comboBoxHD->currentData().toInt();
|
||||
fdc_type = ui->comboBoxFD->currentData().toInt();
|
||||
fdc_current[0] = ui->comboBoxFD->currentData().toInt();
|
||||
cdrom_interface_current = ui->comboBoxCDInterface->currentData().toInt();
|
||||
ide_ter_enabled = ui->checkBoxTertiaryIDE->isChecked() ? 1 : 0;
|
||||
ide_qua_enabled = ui->checkBoxQuaternaryIDE->isChecked() ? 1 : 0;
|
||||
@@ -128,7 +128,7 @@ SettingsStorageControllers::onCurrentMachineChanged(int machineId)
|
||||
|
||||
if (device_is_valid(fdc_dev, machineId)) {
|
||||
int row = Models::AddEntry(model, name, c);
|
||||
if (c == fdc_type) {
|
||||
if (c == fdc_current[0]) {
|
||||
selectedRow = row - removeRows;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user