Qt: Always change floppy type's first column on changing type

Thanks to DFXThomas on Discord for pointing out this bug.
This commit is contained in:
Mike Swanson
2026-02-12 13:19:22 -08:00
parent 283d9b4fcc
commit d2c1b00750

View File

@@ -434,7 +434,8 @@ void
SettingsFloppyCDROM::on_comboBoxFloppyType_activated(int index)
{
auto currentIndex = ui->tableViewFloppy->selectionModel()->currentIndex();
setFloppyType(ui->tableViewFloppy->model(), currentIndex, index);
auto typeIndex = currentIndex.siblingAtColumn(0);
setFloppyType(ui->tableViewFloppy->model(), typeIndex, index);
// Trigger row changed to rebuild audio profile list
onFloppyRowChanged(currentIndex);