FileDialog: Fix open directory by "Open" button - get the name from EditLine not activate selected item.

This commit is contained in:
and3md 2017-09-07 19:40:54 +02:00
parent 20e42ccfac
commit 72da1239bb
1 changed files with 2 additions and 3 deletions

View File

@ -631,9 +631,8 @@ class FileDialog : Dialog, CustomGridCellAdapter {
_filename = _path ~ dirSeparator ~ baseFilename;
if (action.id != StandardAction.OpenDirectory && exists(_filename) && isDir(_filename)) {
// directory selected but we need file so open directory
auto row = _fileList.row();
onItemActivated(row);
// directory name in _edFileName.text but we need file so open directory
openDirectory(_filename, null);
return true;
} else if (baseFilename.length > 0) {
Action result = _action;