Update SbieView.cpp

Fix https://github.com/sandboxie-plus/Sandboxie/issues/2231
Fix the issue that BoxCollapsedView is not refreshed in time when groups are renamed and deleted.
This commit is contained in:
okrc 2022-09-15 15:58:41 +08:00 committed by GitHub
parent 3d29d17199
commit c0e864b817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -704,6 +704,9 @@ void CSbieView::RenameGroup(const QString OldName, const QString NewName)
auto Group = m_Groups.take(OldName);
m_Groups.insert(NewName, Group);
m_Collapsed.remove(OldName);
m_Collapsed.insert(NewName);
RenameItem(OldName, NewName);
}
@ -814,6 +817,7 @@ void CSbieView::OnGroupAction(QAction* Action)
break;
}
}
m_Collapsed.remove(Group);
}
}
}