From 0644636afb63ca04726dc8375d89b834a4068395 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Thu, 24 Feb 2022 00:55:56 +0600 Subject: [PATCH] qt: Fix CD-ROM speed in settings for real --- src/qt/qt_settingsfloppycdrom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/qt_settingsfloppycdrom.cpp b/src/qt/qt_settingsfloppycdrom.cpp index d567dd7c9..bf26c5162 100644 --- a/src/qt/qt_settingsfloppycdrom.cpp +++ b/src/qt/qt_settingsfloppycdrom.cpp @@ -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);