diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-06 21:13:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 21:13:22 +0200 |
commit | 9d3c8f04d4927bc464197a50fab3aca5a8355d98 (patch) | |
tree | d5de89bdc515620bc19b2a3b2c84ce1d358b199b /editor | |
parent | 4d0fdf2e98be631e90b8320d10d842a042e31c8a (diff) | |
parent | 6edbbf3a9483d14d3c1a4bad41835f0eacc7e17d (diff) |
Merge pull request #59955 from lufog/add_folder_fix
Diffstat (limited to 'editor')
-rw-r--r-- | editor/filesystem_dock.cpp | 2 |
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; } |