mirror of https://github.com/buggins/dlangui.git
Merge pull request #137 from keywan-ghadami/file-dialog-open-selected-directory
minor improvement for file-dialog
This commit is contained in:
commit
6579d35685
|
@ -368,6 +368,10 @@ class FileDialog : Dialog, CustomGridCellAdapter {
|
||||||
result.stringParam = _filename;
|
result.stringParam = _filename;
|
||||||
close(result);
|
close(result);
|
||||||
return true;
|
return true;
|
||||||
|
} else if (_filename.length == 0){
|
||||||
|
auto row = _fileList.row();
|
||||||
|
onItemActivated(row);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return super.handleAction(action);
|
return super.handleAction(action);
|
||||||
|
|
Loading…
Reference in New Issue