This commit is contained in:
parent
1a8fd618d8
commit
0ed16b3f5f
|
@ -121,8 +121,8 @@ void ManageBackupPointList::insertLines(const QList<ParseBackupList::BackupPoint
|
||||||
QString prefixPath_to_device;
|
QString prefixPath_to_device;
|
||||||
if (backupPoint.m_path.startsWith(preDevPath)) {
|
if (backupPoint.m_path.startsWith(preDevPath)) {
|
||||||
QStorageInfo storage(backupPoint.m_path);
|
QStorageInfo storage(backupPoint.m_path);
|
||||||
QString udiskName = storage.displayName();
|
QString udiskName = storage.rootPath();
|
||||||
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName;
|
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName + BACKUP_SNAPSHOTS_PATH;
|
||||||
} else {
|
} else {
|
||||||
prefixPath_to_device = QObject::tr("Local Disk:") + " " + BACKUP_SNAPSHOTS_PATH;
|
prefixPath_to_device = QObject::tr("Local Disk:") + " " + BACKUP_SNAPSHOTS_PATH;
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,11 +137,11 @@ void SelectRestorePoint::insertLines(const QList<ParseBackupList::BackupPoint> &
|
||||||
QString prefixPath_to_device;
|
QString prefixPath_to_device;
|
||||||
if (backupPoint.m_path.startsWith(preDevPath)) {
|
if (backupPoint.m_path.startsWith(preDevPath)) {
|
||||||
QStorageInfo storage(backupPoint.m_path);
|
QStorageInfo storage(backupPoint.m_path);
|
||||||
QString udiskName = storage.displayName();
|
QString udiskName = storage.rootPath();
|
||||||
if (isOther)
|
if (isOther)
|
||||||
prefixPath_to_device = QObject::tr("Other machine:") + " " + udiskName;
|
prefixPath_to_device = QObject::tr("Other machine:") + " " + udiskName + BACKUP_SNAPSHOTS_PATH;
|
||||||
else
|
else
|
||||||
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName;
|
prefixPath_to_device = QObject::tr("Udisk Device:") + " " + udiskName + BACKUP_SNAPSHOTS_PATH;
|
||||||
} else {
|
} else {
|
||||||
prefixPath_to_device = QObject::tr("Local Disk:") + " " + BACKUP_SNAPSHOTS_PATH;
|
prefixPath_to_device = QObject::tr("Local Disk:") + " " + BACKUP_SNAPSHOTS_PATH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue