From 6edbbf3a9483d14d3c1a4bad41835f0eacc7e17d Mon Sep 17 00:00:00 2001 From: Aleksey Smirnov Date: Wed, 6 Apr 2022 21:01:00 +0300 Subject: Fix false warning folder already exists --- editor/filesystem_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3