Merge pull request #21879 from willnationsdev/script-name-empty
Fix ScriptCreateDialog passing script w/ no filename
This commit is contained in:
commit
ec788e1ac4
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue