diff --git a/backup-daemon/customizedatabackupproxy.cpp b/backup-daemon/customizedatabackupproxy.cpp index 3fffb6c..19d7d77 100755 --- a/backup-daemon/customizedatabackupproxy.cpp +++ b/backup-daemon/customizedatabackupproxy.cpp @@ -182,6 +182,7 @@ bool CustomizeDataBackupProxy::checkFreeCapacity(qint64 itotalSize) if (itotalSize > freeSize) { emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH)); result = false; + return result; } else { emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS)); } diff --git a/backup-daemon/customizesystembackupproxy.cpp b/backup-daemon/customizesystembackupproxy.cpp index 09af0a7..e2b69de 100755 --- a/backup-daemon/customizesystembackupproxy.cpp +++ b/backup-daemon/customizesystembackupproxy.cpp @@ -154,6 +154,7 @@ void CustomizeSystemBackupProxy::checkFreeCapacity(qint64 itotalSize) // 3、校验空间是否足够 if (itotalSize > freeSize) { emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH)); + return ; } else { emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS)); } diff --git a/backup-daemon/databackupproxy.cpp b/backup-daemon/databackupproxy.cpp index 78bacd8..da6f15c 100755 --- a/backup-daemon/databackupproxy.cpp +++ b/backup-daemon/databackupproxy.cpp @@ -164,6 +164,7 @@ bool DataBackupProxy::checkFreeCapacity(qint64 itotalSize) if (itotalSize > freeSize) { emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH)); result = false; + return result; } else { emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS)); } diff --git a/backup-daemon/systembackupproxy.cpp b/backup-daemon/systembackupproxy.cpp index 8fbbd43..61954f5 100755 --- a/backup-daemon/systembackupproxy.cpp +++ b/backup-daemon/systembackupproxy.cpp @@ -174,6 +174,7 @@ void SystemBackupProxy::checkFreeCapacity(qint64 itotalSize) // 3、校验空间是否足够 if (itotalSize > freeSize) { emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH)); + return ; } else { emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS)); } diff --git a/backup-daemon/udiskdatabackupproxy.cpp b/backup-daemon/udiskdatabackupproxy.cpp index 737f681..31a9031 100755 --- a/backup-daemon/udiskdatabackupproxy.cpp +++ b/backup-daemon/udiskdatabackupproxy.cpp @@ -193,6 +193,7 @@ bool UDiskDataBackupProxy::checkFreeCapacityToUdisk(qint64 itotalSize) if (itotalSize > freeSize) { emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH)); result = false; + return result; } else { emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS)); } diff --git a/backup-daemon/udisksystembackupproxy.cpp b/backup-daemon/udisksystembackupproxy.cpp index e1b6252..94f3476 100755 --- a/backup-daemon/udisksystembackupproxy.cpp +++ b/backup-daemon/udisksystembackupproxy.cpp @@ -212,6 +212,7 @@ void UDiskSystemBackupProxy::checkFreeCapacity(qint64 itotalSize) // 3、校验空间是否足够 if (itotalSize > freeSize) { emit checkResult(int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH)); + return ; } else { emit checkResult(int(BackupResult::CHECK_ENV_SUCCESS)); }