ENH: do not force users to create paths
This commit is contained in:
parent
e2e08e4b96
commit
538d6e82d8
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
catch(int nErrCode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user