This commit is contained in:
love-code-yeyixiao 2024-05-12 15:13:21 +08:00
parent d5adb5e2d2
commit 60e40e7849
1 changed files with 3 additions and 3 deletions

View File

@ -2306,14 +2306,14 @@ void CSandMan::OnBoxClosed(const CSandBoxPtr& pBox)
}
}
QStringList bDel=new QStringList(),list= pBox->GetTextList("Template", FALSE);
QStringList *bDel=new QStringList(),list= pBox->GetTextList("Template", FALSE);
foreach(const QString& Value2, list) {
if (tr("Template_Temp_").compare(Value2.left(14)) == 0)
{
bDel.append(Value2);
bDel->append(Value2);
}
}
foreach(const QString& Value3, bDel) {
foreach(const QString& Value3, *bDel) {
list.removeAt(list.indexOf(Value3));
}
pBox->UpdateTextList("Template", list,FALSE);