Fixed file name being removed on folder change in save as dialogs fixes #5324

This commit is contained in:
Daniel J. Ramirez 2016-06-20 18:05:59 -05:00
parent 85d8000449
commit 48f9c02289

View file

@ -437,10 +437,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");