FileDialog: reset mkdir label after use (#4500)

Closes #1686.
(cherry picked from commit ab7886ffc4)
This commit is contained in:
Rémi Verschelde 2016-05-01 11:38:24 +02:00 committed by Rémi Verschelde
parent d29087cc53
commit d49fff6246
3 changed files with 3 additions and 2 deletions

View File

@ -614,7 +614,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());
@ -624,6 +623,7 @@ void FileDialog::_make_dir_confirm() {
} else {
mkdirerr->popup_centered_minsize(Size2(250,50));
}
makedirname->set_text(""); // reset label
}

View File

@ -189,6 +189,7 @@ void EditorDirDialog::_make_dir_confirm() {
} else {
reload();
}
makedirname->set_text(""); // reset label
}

View File

@ -832,7 +832,6 @@ EditorFileDialog::Access EditorFileDialog::get_access() const{
void EditorFileDialog::_make_dir_confirm() {
Error err = dir_access->make_dir( makedirname->get_text() );
if (err==OK) {
dir_access->change_dir(makedirname->get_text());
@ -844,6 +843,7 @@ void EditorFileDialog::_make_dir_confirm() {
} else {
mkdirerr->popup_centered_minsize(Size2(250,50));
}
makedirname->set_text(""); // reset label
}