Merge pull request #2164 from Cacodemon345/patch-62

qt: Fix CD-ROM speed in settings for real
This commit is contained in:
Miran Grča
2022-02-23 21:36:40 +01:00
committed by GitHub

View File

@@ -67,6 +67,7 @@ static void setCDROMBus(QAbstractItemModel* model, const QModelIndex& idx, uint8
}
static void setCDROMSpeed(QAbstractItemModel* model, const QModelIndex& idx, uint8_t speed) {
if (!speed) speed = 8;
auto i = idx.siblingAtColumn(1);
model->setData(i, QString("%1x").arg(speed));
model->setData(i, speed, Qt::UserRole);