From ada4f50401026455558a9d417276490f0e0c18f7 Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Mon, 18 Jul 2022 15:24:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E7=A9=BA=E9=97=B4=E4=B8=8D?= =?UTF-8?q?=E8=B6=B3=E6=97=B6=E7=AB=8B=E5=88=BB=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/customizedatabackupproxy.cpp | 1 + backup-daemon/customizesystembackupproxy.cpp | 1 + backup-daemon/databackupproxy.cpp | 1 + backup-daemon/systembackupproxy.cpp | 1 + backup-daemon/udiskdatabackupproxy.cpp | 1 + backup-daemon/udisksystembackupproxy.cpp | 1 + 6 files changed, 6 insertions(+) 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)); }