Fix floppy icon changing to ZIP if a removable drive is present

This commit is contained in:
Alexander Babikov
2026-02-27 06:23:13 +05:00
parent 958761a67f
commit c660e3589d

View File

@@ -772,9 +772,9 @@ MachineStatus::refresh(QStatusBar *sbar)
if (rdisk_drives[i].bus_type == RDISK_BUS_DISABLED) {
d->rdisk[i].pixmaps = &d->pixmaps.rdisk_disabled;
} else if ((t == RDISK_TYPE_ZIP_100) || (t == RDISK_TYPE_ZIP_250)) {
d->fdd[i].pixmaps = &d->pixmaps.zip;
d->rdisk[i].pixmaps = &d->pixmaps.zip;
} else {
d->fdd[i].pixmaps = &d->pixmaps.rdisk;
d->rdisk[i].pixmaps = &d->pixmaps.rdisk;
}
d->rdisk[i].label = std::make_unique<ClickableLabel>();
d->rdisk[i].setEmpty(QString(rdisk_drives[i].image_path).isEmpty());