Update SandMan.cpp

fix Temp template
This commit is contained in:
offhub 2024-05-12 15:45:04 +03:00
parent 48c8874160
commit 0c965e1660
No known key found for this signature in database
GPG Key ID: 7B12A8941851DA59
1 changed files with 2 additions and 1 deletions

View File

@ -2306,10 +2306,11 @@ void CSandMan::OnBoxClosed(const CSandBoxPtr& pBox)
}
}
QString tempValPrefix = "Temp_";
QStringList to_delete;
QStringList list = pBox->GetTextList("Template", FALSE);
foreach(const QString& Value, list) {
if (tr("Template_Temp_").compare(Value.left(14)) == 0)
if (tempValPrefix.compare(Value.left(5)) == 0)
to_delete.append(Value);
}
if (!to_delete.isEmpty()) {