Update SbieView.cpp

This commit is contained in:
okrc 2022-09-16 07:34:31 +08:00 committed by GitHub
parent a8cdb40295
commit c19bda4416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1233,14 +1233,14 @@ void CSbieView::OnSandBoxAction(QAction* Action, const QList<CSandBoxPtr>& SandB
SB_STATUS Status = theGUI->DeleteBoxContent(pBox, CSandMan::eForDelete); SB_STATUS Status = theGUI->DeleteBoxContent(pBox, CSandMan::eForDelete);
if (Status.GetMsgCode() == SB_Canceled) if (Status.GetMsgCode() == SB_Canceled)
break; break;
QString m_Name = pBox->GetName(); QString Name = pBox->GetName();
if (!Status.IsError()) if (!Status.IsError())
Status = pBox->RemoveBox(); Status = pBox->RemoveBox();
Results.append(Status); Results.append(Status);
for (auto I = m_Groups.begin(); I != m_Groups.end(); ++I) for (auto I = m_Groups.begin(); I != m_Groups.end(); ++I)
{ {
if (I.value().removeOne(m_Name)) if (I.value().removeOne(Name))
break; break;
} }
} }