summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editor/project_manager/project_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/project_manager/project_dialog.cpp b/editor/project_manager/project_dialog.cpp
index 262a1ecc1a..be5fa8745c 100644
--- a/editor/project_manager/project_dialog.cpp
+++ b/editor/project_manager/project_dialog.cpp
@@ -315,6 +315,8 @@ void ProjectDialog::_create_dir_toggled(bool p_pressed) {
target_path = target_path.path_join(last_custom_target_dir);
}
} else {
+ // Strip any trailing slash.
+ target_path = target_path.rstrip("/\\");
// Save and remove target dir name.
if (target_path.get_file() == auto_dir) {
last_custom_target_dir = "";