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;
|
||||
#endif
|
||||
|
||||
QString device = QString::fromStdString(i.device);
|
||||
drivesInNewList.insert(device);
|
||||
QString deviceNamePlusSize = QString::fromStdString(i.device)+":"+QString::number(i.size);
|
||||
drivesInNewList.insert(deviceNamePlusSize);
|
||||
|
||||
if (!_drivelist.contains(device))
|
||||
if (!_drivelist.contains(deviceNamePlusSize))
|
||||
{
|
||||
// Found new drive
|
||||
if (!changes)
|
||||
|
@ -93,7 +93,7 @@ void DriveListModel::refreshDriveList()
|
|||
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