1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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;