From 69c09ab2fdcfcc9de42ddcb3b7580c118b2182a3 Mon Sep 17 00:00:00 2001 From: willnationsdev Date: Sat, 8 Sep 2018 15:04:55 -0500 Subject: [PATCH] Fix ScriptCreateDialog passing script w/ no filename --- editor/script_create_dialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 24c4ba4cb7e..6f5046616da 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;