summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-13 22:22:27 +0100
committerGitHub <noreply@github.com>2021-03-13 22:22:27 +0100
commit21aabc4fe365c5300ab0983405450c2f4d150991 (patch)
tree954bd99b8dbe30dd5b5c6053a95d8abc2f8d5d20 /editor
parent0fd723d3ec1dc80d923f7e4e9062873916c762f0 (diff)
parentc8538153b08c976f2a0aeba5c7385b8c8766fc62 (diff)
Merge pull request #46969 from Pop0p/fix_folder_stripedges
Remove whitespaces when creating folder
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_file_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp
index 6d694358bf..f78da9569f 100644
--- a/editor/editor_file_dialog.cpp
+++ b/editor/editor_file_dialog.cpp
@@ -1076,9 +1076,9 @@ EditorFileDialog::Access EditorFileDialog::get_access() const {
}
void EditorFileDialog::_make_dir_confirm() {
- Error err = dir_access->make_dir(makedirname->get_text());
+ Error err = dir_access->make_dir(makedirname->get_text().strip_edges());
if (err == OK) {
- dir_access->change_dir(makedirname->get_text());
+ dir_access->change_dir(makedirname->get_text().strip_edges());
invalidate();
update_filters();
update_dir();