U盘备份一半时拔出U盘优化备份管理

This commit is contained in:
zhaominyong 2022-07-04 16:21:55 +08:00
parent a45e7a27c0
commit 2da0471366
3 changed files with 9 additions and 1 deletions

View File

@ -83,6 +83,8 @@ void UDiskDataBackupProxy::doWorkEx()
*/ */
void UDiskDataBackupProxy::cancelEx() void UDiskDataBackupProxy::cancelEx()
{ {
qDebug() << "UDiskDataBackupProxy::cancelEx invoke begin";
m_bCancel = true; m_bCancel = true;
if (!m_isFinished) { if (!m_isFinished) {
emit this->checkResult(int(BackupResult::START_CANCEL)); emit this->checkResult(int(BackupResult::START_CANCEL));
@ -97,6 +99,8 @@ void UDiskDataBackupProxy::cancelEx()
deleteFailedData(); deleteFailedData();
emit this->checkResult(int(BackupResult::CANCEL_SUCCESS)); emit this->checkResult(int(BackupResult::CANCEL_SUCCESS));
} }
qDebug() << "UDiskDataBackupProxy::cancelEx invoke end";
} }
/** /**

View File

@ -96,6 +96,8 @@ void UDiskSystemBackupProxy::doWorkEx()
void UDiskSystemBackupProxy::cancelEx() void UDiskSystemBackupProxy::cancelEx()
{ {
qDebug() << "UDiskSystemBackupProxy::cancelEx invoke begin";
m_bCancel = true; m_bCancel = true;
if (!m_isFinished) { if (!m_isFinished) {
emit this->checkResult(int(BackupResult::START_CANCEL)); emit this->checkResult(int(BackupResult::START_CANCEL));
@ -112,6 +114,8 @@ void UDiskSystemBackupProxy::cancelEx()
deleteFailedData(); deleteFailedData();
emit this->checkResult(int(BackupResult::CANCEL_SUCCESS)); emit this->checkResult(int(BackupResult::CANCEL_SUCCESS));
} }
qDebug() << "UDiskSystemBackupProxy::cancelEx invoke end";
} }
/** /**

View File

@ -123,7 +123,7 @@ void ManageBackupPointList::insertLines(const QList<ParseBackupList::BackupPoint
// continue; // continue;
//udisk unique //udisk unique
if (backupPoint.m_path.startsWith(preDevPath)) { if (backupPoint.m_state == BACKUP_PARSE_STATE_SUCCESS_STRTING && backupPoint.m_path.startsWith(preDevPath)) {
udisk_setting.beginGroup(backupPoint.m_backupName); udisk_setting.beginGroup(backupPoint.m_backupName);
QString localuuid = udisk_setting.value("uuid").toString(); QString localuuid = udisk_setting.value("uuid").toString();
udisk_setting.endGroup(); udisk_setting.endGroup();