From aea4245184c6a123ad70e1dc8dc7969eeafe6916 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 26 Feb 2026 13:24:53 +0100 Subject: [PATCH] Removable disk: Fix icon changing on type change in Settings. --- src/qt/qt_settingsotherremovable.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt/qt_settingsotherremovable.cpp b/src/qt/qt_settingsotherremovable.cpp index e00e3686f..a24e407eb 100644 --- a/src/qt/qt_settingsotherremovable.cpp +++ b/src/qt/qt_settingsotherremovable.cpp @@ -118,13 +118,15 @@ SettingsOtherRemovable::setRDiskType(QAbstractItemModel *model, const QModelInde break; } + auto i = idx.siblingAtColumn(0); + model->setData(i, icon, Qt::DecorationRole); + auto i = idx.siblingAtColumn(1); if (idx.siblingAtColumn(0).data(Qt::UserRole).toUInt() == RDISK_BUS_DISABLED) model->setData(i, QCoreApplication::translate("", "None")); else model->setData(i, rdiskDriveTypeName(type)); model->setData(i, type, Qt::UserRole); - model->setData(i, icon, Qt::DecorationRole); } SettingsOtherRemovable::SettingsOtherRemovable(QWidget *parent)