From 2317364ac6e5cd054dc16764d17a23ec12a93687 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 18 Jan 2018 12:24:20 +0200 Subject: [PATCH] Disallow creating new projects in a non-empty folder. --- editor/project_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 20b94c823f6..8dd9b762830 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -176,10 +176,10 @@ private: if (!is_empty) { - set_message(TTR("Your project will be created in a non empty folder (you might want to create a new folder)."), MESSAGE_WARNING); + set_message(TTR("Please choose an empty folder."), MESSAGE_ERROR); memdelete(d); - get_ok()->set_disabled(false); - return valid_path; + get_ok()->set_disabled(true); + return ""; } } else if (d->file_exists("project.godot")) {