From 3e406dc4eebe5643a3febbba8f322184edff7c5d Mon Sep 17 00:00:00 2001 From: okrc <29057533+okrc@users.noreply.github.com> Date: Thu, 15 Sep 2022 17:01:16 +0800 Subject: [PATCH] Update SbieView.cpp --- SandboxiePlus/SandMan/Views/SbieView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index 826f7559..560bb6e0 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -1224,13 +1224,14 @@ void CSbieView::OnSandBoxAction(QAction* Action, const QList& SandB SB_STATUS Status = theGUI->DeleteBoxContent(pBox, CSandMan::eForDelete); if (Status.GetMsgCode() == SB_Canceled) break; + QString m_Name = pBox->GetName(); if (!Status.IsError()) Status = pBox->RemoveBox(); Results.append(Status); for (auto I = m_Groups.begin(); I != m_Groups.end(); ++I) { - if (I.value().removeOne(pBox->GetName())) + if (I.value().removeOne(m_Name)) break; } }