Merge pull request #410 from John-Colvin/newFileOpen

consider FileMustExist for file open dialog
This commit is contained in:
Vadim Lopatin 2017-08-31 11:41:32 +03:00 committed by GitHub
commit 5cea4cb23d
1 changed files with 12 additions and 12 deletions

View File

@ -513,7 +513,7 @@ class FileDialog : Dialog, CustomGridCellAdapter {
return true;
}
}
else if (exists(_filename) && isFile(_filename)) {
else if (!(_flags & FileDialogFlag.FileMustExist) || (exists(_filename) && isFile(_filename))) {
// open dialog
close(result);
return true;