U盘备份一半时拔出U盘优化备份管理
This commit is contained in:
parent
a45e7a27c0
commit
2da0471366
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue