This commit is contained in:
zhaominyong 2022-01-20 17:23:26 +08:00
parent 1a8fd618d8
commit 0ed16b3f5f
2 changed files with 5 additions and 5 deletions

View File

@ -121,8 +121,8 @@ void ManageBackupPointList::insertLines(const QList<ParseBackupList::BackupPoint
QString prefixPath_to_device;
if (backupPoint.m_path.startsWith(preDevPath)) {
QStorageInfo storage(backupPoint.m_path);
QString udiskName = storage.displayName();
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName;
QString udiskName = storage.rootPath();
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName + BACKUP_SNAPSHOTS_PATH;
} else {
prefixPath_to_device = QObject::tr("Local Disk:") + " " + BACKUP_SNAPSHOTS_PATH;
}

View File

@ -137,11 +137,11 @@ void SelectRestorePoint::insertLines(const QList<ParseBackupList::BackupPoint> &
QString prefixPath_to_device;
if (backupPoint.m_path.startsWith(preDevPath)) {
QStorageInfo storage(backupPoint.m_path);
QString udiskName = storage.displayName();
QString udiskName = storage.rootPath();
if (isOther)
prefixPath_to_device = QObject::tr("Other machine:") + " " + udiskName;
prefixPath_to_device = QObject::tr("Other machine:") + " " + udiskName + BACKUP_SNAPSHOTS_PATH;
else
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName;
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName + BACKUP_SNAPSHOTS_PATH;
} else {
prefixPath_to_device = QObject::tr("Local Disk:") + " " + BACKUP_SNAPSHOTS_PATH;
}