diff --git a/backup-daemon/deletebackupproxy.cpp b/backup-daemon/deletebackupproxy.cpp index 44ed656..13fa39f 100755 --- a/backup-daemon/deletebackupproxy.cpp +++ b/backup-daemon/deletebackupproxy.cpp @@ -1,6 +1,7 @@ #include "deletebackupproxy.h" #include #include +#include #include #include "../common/utils.h" @@ -51,7 +52,7 @@ bool DeleteBackupProxy::deleteXmlBackupPoint() m_backupPoint = parse.findBackupPointByUuid(m_backupWrapper.m_uuid); // 删除节点 - if (parse.deleteItem(m_backupWrapper.m_uuid) != ParseBackupList::SUCCESS) { + if (!m_backupWrapper.m_uuid.contains(QRegularExpression("^\\{.*-.*-.*-.*-.*\\}$")) || parse.deleteItem(m_backupWrapper.m_uuid) != ParseBackupList::SUCCESS) { qCritical() << QString("failed to delete %1 from backuplist.xml!").arg(m_backupWrapper.m_uuid); emit workResult(false); return false;