mirror of https://github.com/buggins/dlangui.git
minor improvement for file-dialog
if the user selects no file and press the open button: the dialog will (instead of closing itself) now open the selected directory
This commit is contained in:
parent
4f0cced6b4
commit
d51e05396c
|
@ -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