mirror of https://github.com/buggins/dlangui.git
Merge pull request #410 from John-Colvin/newFileOpen
consider FileMustExist for file open dialog
This commit is contained in:
commit
5cea4cb23d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue