mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
parent
7506d5b35a
commit
a7a2501047
1 changed files with 4 additions and 4 deletions
|
@ -81,10 +81,10 @@ void DriveListModel::refreshDriveList()
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QString device = QString::fromStdString(i.device);
|
QString deviceNamePlusSize = QString::fromStdString(i.device)+":"+QString::number(i.size);
|
||||||
drivesInNewList.insert(device);
|
drivesInNewList.insert(deviceNamePlusSize);
|
||||||
|
|
||||||
if (!_drivelist.contains(device))
|
if (!_drivelist.contains(deviceNamePlusSize))
|
||||||
{
|
{
|
||||||
// Found new drive
|
// Found new drive
|
||||||
if (!changes)
|
if (!changes)
|
||||||
|
@ -93,7 +93,7 @@ void DriveListModel::refreshDriveList()
|
||||||
changes = true;
|
changes = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
_drivelist[device] = new DriveListItem(device, QString::fromStdString(i.description), i.size, i.isUSB, i.isSCSI, mountpoints, this);
|
_drivelist[deviceNamePlusSize] = new DriveListItem(QString::fromStdString(i.device), QString::fromStdString(i.description), i.size, i.isUSB, i.isSCSI, mountpoints, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue