summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-06 21:13:22 +0200
committerGitHub <noreply@github.com>2022-04-06 21:13:22 +0200
commit9d3c8f04d4927bc464197a50fab3aca5a8355d98 (patch)
treed5de89bdc515620bc19b2a3b2c84ce1d358b199b
parent4d0fdf2e98be631e90b8320d10d842a042e31c8a (diff)
parent6edbbf3a9483d14d3c1a4bad41835f0eacc7e17d (diff)
Merge pull request #59955 from lufog/add_folder_fix
-rw-r--r--editor/filesystem_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index f6d00470d1..bca78d18e4 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1432,7 +1432,7 @@ void FileSystemDock::_make_dir_confirm() {
Error err = da->change_dir(directory);
ERR_FAIL_COND_MSG(err != OK, "Cannot open directory '" + directory + "'.");
- if (da->dir_exists(directory)) {
+ if (da->dir_exists(dir_name)) {
EditorNode::get_singleton()->show_warning(TTR("Could not create folder. File with that name already exists."));
return;
}