Fix ScriptCreateDialog passing script w/ no filename

This commit is contained in:
willnationsdev 2018-09-08 15:04:55 -05:00
parent df39a034dc
commit 69c09ab2fd

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;