Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
love-code-yeyixiao committed May 12, 2024
1 parent 0f3192b commit d5adb5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SandboxiePlus/SandMan/SandMan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2306,15 +2306,15 @@ void CSandMan::OnBoxClosed(const CSandBoxPtr& pBox)
}
}

QStringList *bDel=new QStringList(),list= pBox->GetTextList("Template", FALSE);
foreach(const QString& Value, list) {
if (tr("Template_Temp_").compare(Value.left(14)) == 0)
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(Value);
bDel.append(Value2);
}
}
foreach(const QString& Value, bDel) {
list.removeAt(list.indexOf(Value));
foreach(const QString& Value3, bDel) {
list.removeAt(list.indexOf(Value3));
}
pBox->UpdateTextList("Template", list,FALSE);

Expand Down

0 comments on commit d5adb5e

Please sign in to comment.