Update SbieView.cpp

This commit is contained in:
okrc 2022-09-16 05:45:35 +08:00 committed by GitHub
parent 3e406dc4ee
commit b20c87569f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -1205,10 +1205,13 @@ void CSbieView::OnSandBoxAction(QAction* Action, const QList<CSandBoxPtr>& SandB
if (!TestNameAndWarn(Value))
return;
Results.append((SandBoxes.first()->RenameBox(Value)));
RenameItem(OldValue, Value);
theConf->DelValue("SizeCache/" + OldValue);
SB_STATUS Status = SandBoxes.first()->RenameBox(Value);
if (!Status.IsError())
{
RenameItem(OldValue, Value);
theConf->DelValue("SizeCache/" + OldValue);
}
Results.append(Status);
}
else if (Action == m_pMenuRecover)
{