This commit is contained in:
DavidXanatos 2022-09-18 11:17:56 +02:00
commit 2e99740ed6
1 changed files with 3 additions and 3 deletions

View File

@ -704,9 +704,6 @@ void CSbieView::RenameGroup(const QString OldName, const QString NewName)
auto Group = m_Groups.take(OldName);
m_Groups.insert(NewName, Group);
if (m_Collapsed.remove(OldName))
m_Collapsed.insert(NewName);
RenameItem(OldName, NewName);
}
@ -716,6 +713,9 @@ void CSbieView::RenameItem(const QString OldName, const QString NewName)
theConf->DelValue("SizeCache/" + OldName);
if(Size != -1) theConf->SetValue("SizeCache/" + NewName, Size);
if (m_Collapsed.remove(OldName))
m_Collapsed.insert(NewName);
for (auto I = m_Groups.begin(); I != m_Groups.end(); ++I)
{
if (I.value().removeOne(OldName))