This commit is contained in:
parent
536bda95a3
commit
1a8fd618d8
|
@ -160,12 +160,18 @@ void UDiskGhostImageProxy::cancelEx()
|
|||
*/
|
||||
void UDiskGhostImageProxy::deleteFailedData()
|
||||
{
|
||||
// 1、删除镜像文件
|
||||
// 1、删除临时镜像文件
|
||||
QFile kyimg(m_kyimg);
|
||||
if (kyimg.exists())
|
||||
kyimg.remove();
|
||||
}
|
||||
|
||||
// 2、删除目标镜像文件
|
||||
QString kyimgFile = m_destPath + "/" + m_backupWrapper.m_backupName;
|
||||
kyimgFile.replace("//", "/");
|
||||
QFile kyimgDest(kyimgFile);
|
||||
if (kyimgDest.exists())
|
||||
kyimgDest.remove();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ghost镜像
|
||||
|
|
|
@ -980,6 +980,7 @@ void DataBackup::on_checkEnv_end(int result)
|
|||
break;
|
||||
}
|
||||
|
||||
Utils::wait(2);
|
||||
emit checkEnvResult(bRst, errMsg, errTip);
|
||||
GlobelBackupInfo::inst().setIsBusy(false);
|
||||
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &DataBackup::on_checkEnv_end);
|
||||
|
|
|
@ -522,6 +522,7 @@ void DataRestore::on_checkEnv_end(int result)
|
|||
break;
|
||||
}
|
||||
|
||||
Utils::wait(2);
|
||||
emit checkEnvResult(bRst, errMsg, errTip);
|
||||
GlobelBackupInfo::inst().setIsBusy(false);
|
||||
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &DataRestore::on_checkEnv_end);
|
||||
|
|
|
@ -587,6 +587,7 @@ void GhostImage::on_checkEnv_end(int result)
|
|||
break;
|
||||
}
|
||||
|
||||
Utils::wait(2);
|
||||
emit checkEnvResult(bRst, errMsg, errTip);
|
||||
GlobelBackupInfo::inst().setIsBusy(false);
|
||||
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &GhostImage::on_checkEnv_end);
|
||||
|
|
|
@ -570,6 +570,7 @@ void SystemBackup::on_checkEnv_end(int result)
|
|||
break;
|
||||
}
|
||||
|
||||
Utils::wait(2);
|
||||
emit checkEnvResult(bRst, errMsg, errTip);
|
||||
GlobelBackupInfo::inst().setIsBusy(false);
|
||||
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &SystemBackup::on_checkEnv_end);
|
||||
|
|
|
@ -548,6 +548,7 @@ void SystemRestore::on_checkEnv_end(int result)
|
|||
break;
|
||||
}
|
||||
|
||||
Utils::wait(2);
|
||||
emit checkEnvResult(bRst, errMsg, errTip);
|
||||
GlobelBackupInfo::inst().setIsBusy(false);
|
||||
disconnect(m_pInterface, &ComKylinBackupManagerInterface::sendEnvCheckResult, this, &SystemRestore::on_checkEnv_end);
|
||||
|
|
Loading…
Reference in New Issue