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 + " > "); }