summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-01 11:38:24 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-01 11:38:24 +0200
commitab7886ffc41326db9c1b578ff008e90a42cad446 (patch)
tree7d20ff5f31f4caa49f7c4e1b026b448e42ee2be7 /scene/gui
parent94274b9ab517aac175d205636f8561ff76d45eda (diff)
FileDialog: reset mkdir label after use (#4500)
Closes #1686.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/file_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 64fdfdfefe..705ce55d42 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -613,7 +613,6 @@ FileDialog::Access FileDialog::get_access() const{
void FileDialog::_make_dir_confirm() {
-
Error err = dir_access->make_dir( makedirname->get_text() );
if (err==OK) {
dir_access->change_dir(makedirname->get_text());
@@ -623,6 +622,7 @@ void FileDialog::_make_dir_confirm() {
} else {
mkdirerr->popup_centered_minsize(Size2(250,50));
}
+ makedirname->set_text(""); // reset label
}