Disallow creating new projects in a non-empty folder.

This commit is contained in:
bruvzg 2018-01-18 12:24:20 +02:00
parent 945248052c
commit 2317364ac6
No known key found for this signature in database
GPG key ID: 89DD917D9CE4218D

View file

@ -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")) {