107778 【备份还原4.0.14】系统备份中点击取消,取消系统备份后,之前的系统备份都被删除
This commit is contained in:
parent
310c94c8d3
commit
b63e7dfb6c
|
@ -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("//", "/");
|
||||
|
|
|
@ -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("//", "/");
|
||||
|
|
|
@ -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("//", "/");
|
||||
|
|
|
@ -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("//", "/");
|
||||
|
|
Loading…
Reference in New Issue