Merge pull request #2227 from okrc/master

Fixed an issue where items were moved to the wrong group.
This commit is contained in:
DavidXanatos 2022-09-16 08:22:36 +02:00 committed by GitHub
commit a328b42aed
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 + " > ");
}