From 206587450263a0aeaa619e06818887d15a3e32f3 Mon Sep 17 00:00:00 2001 From: okrc <29057533+okrc@users.noreply.github.com> Date: Tue, 13 Sep 2022 09:46:53 +0800 Subject: [PATCH] Update SbieView.cpp Fix https://github.com/sandboxie-plus/Sandboxie/issues/2225 --- SandboxiePlus/SandMan/Views/SbieView.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index c598bb40..e5ad5f02 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -681,15 +681,15 @@ void CSbieView::UpdateMoveMenu() m_pMenuMoveTo->removeAction(pAction); } - foreach(QString Group, m_Groups.keys()) + foreach(const QString Group, m_Groups.keys()) { - QString Name = Group; - + QString Name = Group, Temp = Group; + for (;;) { - QString Parent = FindParent(Group); + QString Parent = FindParent(Temp); if (Parent.isEmpty()) break; - Group = Parent; + Temp = Parent; Name.prepend(Parent + " > "); }