Merge pull request #21879 from willnationsdev/script-name-empty

Fix ScriptCreateDialog passing script w/ no filename
This commit is contained in:
Rémi Verschelde 2018-09-10 18:58:21 +02:00 committed by GitHub
commit ec788e1ac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,6 +443,12 @@ void ScriptCreateDialog::_path_changed(const String &p_path) {
return;
}
if (p.get_file().get_basename() == "") {
_msg_path_valid(false, TTR("Filename is empty"));
_update_dialog();
return;
}
/* All checks passed */
is_path_valid = true;