summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/PathDialog.cpp
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-25 03:20:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-25 03:20:56 (GMT)
commit538d6e82d8879b31edbd7b4dbd73f6f856b081dd (patch)
tree46eb9ce730494fcc009aef70509d24681eec1868 /Source/MFCDialog/PathDialog.cpp
parente2e08e4b96532761ae77947c3f7fa366d4952b72 (diff)
downloadCMake-538d6e82d8879b31edbd7b4dbd73f6f856b081dd.zip
CMake-538d6e82d8879b31edbd7b4dbd73f6f856b081dd.tar.gz
CMake-538d6e82d8879b31edbd7b4dbd73f6f856b081dd.tar.bz2
ENH: do not force users to create paths
Diffstat (limited to 'Source/MFCDialog/PathDialog.cpp')
-rw-r--r--Source/MFCDialog/PathDialog.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/Source/MFCDialog/PathDialog.cpp b/Source/MFCDialog/PathDialog.cpp
index d9e86a4..c397216 100644
--- a/Source/MFCDialog/PathDialog.cpp
+++ b/Source/MFCDialog/PathDialog.cpp
@@ -14,11 +14,11 @@
static char THIS_FILE[] = __FILE__;
#endif
-#define IDC_FOLDERTREE 0x3741
-#define IDC_TITLE 0x3742
-#define IDC_STATUSTEXT 0x3743
+#define IDC_FOLDERTREE 0x3741
+#define IDC_TITLE 0x3742
+#define IDC_STATUSTEXT 0x3743
-#define IDC_NEW_EDIT_PATH 0x3744
+#define IDC_NEW_EDIT_PATH 0x3744
// Class CDlgWnd
BEGIN_MESSAGE_MAP(CPathDialogSub, CWnd)
@@ -248,18 +248,15 @@ int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
}
strMsg.Format(c_FolderDoesNotExist, lpPath);
- if(AfxMessageBox(strMsg, MB_YESNO|MB_ICONQUESTION) != IDYES)
+ if(AfxMessageBox(strMsg, MB_YESNO|MB_ICONQUESTION) == IDYES)
{
- return (int)-1;
- }
-
- //create path
- iRet=Touch(lpPath, FALSE);
- if(iRet!=0)
- {
- throw iRet;
+ //create path
+ iRet=Touch(lpPath, FALSE);
+ if(iRet!=0)
+ {
+ throw iRet;
+ }
}
-
return 0;
}
catch(int nErrCode)