diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-10 18:58:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 18:58:21 +0200 |
commit | ec788e1ac4ccc9db3a74ca666b63ebc453f064b8 (patch) | |
tree | 60d8d2c4738ce836fccddbda791d3e113e903600 /editor | |
parent | e883edfac94d03280a75b647fd19ac1cfab120b2 (diff) | |
parent | 69c09ab2fdcfcc9de42ddcb3b7580c118b2182a3 (diff) |
Merge pull request #21879 from willnationsdev/script-name-empty
Fix ScriptCreateDialog passing script w/ no filename
Diffstat (limited to 'editor')
-rw-r--r-- | editor/script_create_dialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 24c4ba4cb7..6f5046616d 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -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; |