Update SbieView.cpp

Fix https://github.com/sandboxie-plus/Sandboxie/issues/2231
When creating groups nested within groups, m_Groups.append ran twice and now removes a value.
This commit is contained in:
okrc 2022-09-15 16:01:54 +08:00 committed by GitHub
parent c0e864b817
commit 138387328a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -777,6 +777,7 @@ void CSbieView::OnGroupAction(QAction* Action)
if (List.isEmpty())
return;
m_Groups[""].removeAll(Name);
m_Groups[List.first()].removeAll(Name);
m_Groups[List.first()].append(Name);
}
else if (Action == m_pRenGroupe)