diff --git a/backup-daemon/databackupproxy.cpp b/backup-daemon/databackupproxy.cpp index 253274b..78bacd8 100755 --- a/backup-daemon/databackupproxy.cpp +++ b/backup-daemon/databackupproxy.cpp @@ -96,6 +96,9 @@ void DataBackupProxy::cancelEx() */ void DataBackupProxy::deleteFailedData() { + if (m_curUuid.isEmpty()) + return; + // 1、删除备份目录 QString destPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid; destPath.replace("//", "/"); diff --git a/backup-daemon/systembackupproxy.cpp b/backup-daemon/systembackupproxy.cpp index 7033bdd..ae9a9e4 100755 --- a/backup-daemon/systembackupproxy.cpp +++ b/backup-daemon/systembackupproxy.cpp @@ -96,6 +96,9 @@ void SystemBackupProxy::cancelEx() */ void SystemBackupProxy::deleteFailedData() { + if (m_curUuid.isEmpty()) + return; + // 1、删除备份目录 QString destPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid; destPath.replace("//", "/"); diff --git a/backup-daemon/udiskdatabackupproxy.cpp b/backup-daemon/udiskdatabackupproxy.cpp index 271e683..15f7c11 100755 --- a/backup-daemon/udiskdatabackupproxy.cpp +++ b/backup-daemon/udiskdatabackupproxy.cpp @@ -102,6 +102,9 @@ void UDiskDataBackupProxy::cancelEx() */ void UDiskDataBackupProxy::deleteFailedData() { + if (m_curUuid.isEmpty()) + return; + // 1、删除备份目录 QString destPath = m_backupWrapper.m_prefixDestPath + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid; destPath.replace("//", "/"); diff --git a/backup-daemon/udisksystembackupproxy.cpp b/backup-daemon/udisksystembackupproxy.cpp index 1afbb92..63f78fa 100755 --- a/backup-daemon/udisksystembackupproxy.cpp +++ b/backup-daemon/udisksystembackupproxy.cpp @@ -119,6 +119,9 @@ void UDiskSystemBackupProxy::cancelEx() */ void UDiskSystemBackupProxy::deleteFailedData() { + if (m_curUuid.isEmpty()) + return; + // 1、删除备份目录 QString destPath = m_backupWrapper.m_prefixDestPath + BACKUP_SNAPSHOTS_PATH + "/" + m_curUuid; destPath.replace("//", "/");