From d55a8d30de0be496d4fbc6428165b0b87385d52a Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 31 Aug 2014 14:28:29 +0000 Subject: [PATCH] .cosmetics #822 git-svn-id: svn://ultimatepp.org/upp/trunk@7627 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/SelectPkg.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)