diff --git a/uppsrc/ide/SelectPkg.cpp b/uppsrc/ide/SelectPkg.cpp index 10983052a..32ea6d9ec 100644 --- a/uppsrc/ide/SelectPkg.cpp +++ b/uppsrc/ide/SelectPkg.cpp @@ -298,9 +298,11 @@ void SelectPackageDlg::OnBaseRemove() next = base.Get(c - 1); String vars = base.Get(0); String varpath = VarFilePath(vars); - if(PromptOKCancel(NFormat("Remove base file [* \1%s\1]?", varpath)) && !FileDelete(varpath)) - Exclamation(NFormat("Error deleting file [* \1%s\1].", varpath)); - SyncBase(next); + if(PromptOKCancel(NFormat("Remove base file [* \1%s\1]?", varpath))) + if(!FileDelete(varpath)) + Exclamation(NFormat("Error deleting file [* \1%s\1].", varpath)); + else + SyncBase(next); } int DirSep(int c)