diff options
author | Aleksey Smirnov <debugger94@gmail.com> | 2022-04-06 21:01:00 +0300 |
---|---|---|
committer | Aleksey Smirnov <debugger94@gmail.com> | 2022-04-06 21:01:00 +0300 |
commit | 6edbbf3a9483d14d3c1a4bad41835f0eacc7e17d (patch) | |
tree | 5530fa993196f2dcac6073068dca59cd81d2cbe1 /editor | |
parent | ac591d9904e4e5cf7841b3e79caabf558d37db0e (diff) |
Fix false warning folder already exists
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; } |