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:
parent
3d29d17199
commit
c0e864b817
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue