Merge pull request #3896 from offhub/fix012

Update SandMan.cpp
This commit is contained in:
DavidXanatos 2024-05-12 15:11:45 +02:00 committed by GitHub
commit c5e4c1992c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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()) {