Merge pull request #5345 from djrm/fix_#5324

Fixed file name being removed on folder change in save as dialogs fix…
This commit is contained in:
Rémi Verschelde 2016-06-23 07:38:46 +02:00 committed by GitHub
commit 3cafcaedd0

View file

@ -466,10 +466,7 @@ void EditorFileDialog::_item_dc_selected(int p_item) {
if (d["dir"]) {
//print_line("change dir: "+String(d["name"]));
dir_access->change_dir(d["name"]);
if (mode==MODE_OPEN_FILE || mode==MODE_OPEN_FILES || mode==MODE_OPEN_DIR || MODE_OPEN_ANY)
file->set_text("");
call_deferred("_update_file_list");
call_deferred("_update_dir");