diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-01-18 12:24:20 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-01-18 12:29:31 +0200 |
commit | 2317364ac6e5cd054dc16764d17a23ec12a93687 (patch) | |
tree | 1b40e0f939187ce4e6f54a53458a8ffd07952ad1 /editor | |
parent | 945248052cd35df2dcc2408fdd48f3ea511a0562 (diff) |
Disallow creating new projects in a non-empty folder.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 20b94c823f..8dd9b76283 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")) { |