Update SbieView.cpp

Fix https://github.com/sandboxie-plus/Sandboxie/issues/2225
This commit is contained in:
okrc 2022-09-13 09:46:53 +08:00 committed by GitHub
parent 1b036a4e05
commit 2065874502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

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