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

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;