mirror of https://github.com/buggins/dlangui.git
FileDialog: Fix open directory by "Open" button - get the name from EditLine not activate selected item.
This commit is contained in:
parent
20e42ccfac
commit
72da1239bb
|
@ -631,9 +631,8 @@ class FileDialog : Dialog, CustomGridCellAdapter {
|
||||||
_filename = _path ~ dirSeparator ~ baseFilename;
|
_filename = _path ~ dirSeparator ~ baseFilename;
|
||||||
|
|
||||||
if (action.id != StandardAction.OpenDirectory && exists(_filename) && isDir(_filename)) {
|
if (action.id != StandardAction.OpenDirectory && exists(_filename) && isDir(_filename)) {
|
||||||
// directory selected but we need file so open directory
|
// directory name in _edFileName.text but we need file so open directory
|
||||||
auto row = _fileList.row();
|
openDirectory(_filename, null);
|
||||||
onItemActivated(row);
|
|
||||||
return true;
|
return true;
|
||||||
} else if (baseFilename.length > 0) {
|
} else if (baseFilename.length > 0) {
|
||||||
Action result = _action;
|
Action result = _action;
|
||||||
|
|
Loading…
Reference in New Issue