From 57a03f0f0252399f01e6445ba0117b2c616ae671 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Sat, 15 Dec 2018 02:22:04 -0200 Subject: Restrict Autoloads from having keywords as their names --- editor/editor_autoload_settings.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/editor_autoload_settings.h') diff --git a/editor/editor_autoload_settings.h b/editor/editor_autoload_settings.h index 45added56b..76ce020d8a 100644 --- a/editor/editor_autoload_settings.h +++ b/editor/editor_autoload_settings.h @@ -84,6 +84,7 @@ class EditorAutoloadSettings : public VBoxContainer { void _autoload_edited(); void _autoload_button_pressed(Object *p_item, int p_column, int p_button); void _autoload_activated(); + void _autoload_text_entered(String) { _autoload_add(); } void _autoload_open(const String &fpath); void _autoload_file_callback(const String &p_path); Node *_create_autoload(const String &p_path); @@ -98,7 +99,7 @@ protected: public: void update_autoload(); - void autoload_add(const String &p_name, const String &p_path); + bool autoload_add(const String &p_name, const String &p_path); void autoload_remove(const String &p_name); EditorAutoloadSettings(); -- cgit v1.2.3