Fix script dialog path validation to handle spaces correctly

This commit is contained in:
DrNochi
2019-04-30 15:58:02 +02:00
parent 9dc9434b1b
commit 23fd2a9175
2 changed files with 81 additions and 97 deletions

View File

@ -87,6 +87,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
void _lang_changed(int l = 0);
void _built_in_pressed();
bool _validate(const String &p_string);
String _validate_path(const String &p_path, bool p_file_must_exist);
void _class_name_changed(const String &p_name);
void _parent_name_changed(const String &p_parent);
void _template_changed(int p_template = 0);