Skip to content

Commit

Permalink
Fix ScriptCreateDialog passing script w/ no filename
Browse files Browse the repository at this point in the history
  • Loading branch information
willnationsdev committed Sep 8, 2018
1 parent df39a03 commit 69c09ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions editor/script_create_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69c09ab

Please sign in to comment.