Clear file selection and disabled Open button when change directory

This commit is contained in:
David Rowe 2016-06-09 14:55:03 +12:00
parent 262e0262fc
commit 358355cfbf

View file

@ -215,6 +215,10 @@ ModalWindow {
openButton.text = root.selectDirectory && row === -1 ? "Choose" : "Open"
if (row === -1) {
if (!root.selectDirectory) {
currentSelection.text = "";
currentSelectionIsFolder = false;
}
return;
}