Browse Source

Merge pull request #5697 from TheHX/issue-5664

Fix Orphan StringName on EditorAutoloadSettings class
Rémi Verschelde 9 years ago
parent
commit
3e2c7bf797

+ 0 - 2
tools/editor/editor_autoload_settings.cpp

@@ -36,8 +36,6 @@
 
 #define PREVIEW_LIST_MAX_SIZE 10
 
-StringName EditorAutoloadSettings::autoload_changed = StringName();
-
 void EditorAutoloadSettings::_notification(int p_what) {
 
 	if (p_what == NOTIFICATION_ENTER_TREE) {

+ 1 - 1
tools/editor/editor_autoload_settings.h

@@ -44,7 +44,7 @@ class EditorAutoloadSettings : public VBoxContainer {
 		BUTTON_DELETE
 	};
 
-	static StringName autoload_changed;
+	String autoload_changed;
 
 	struct AutoLoadInfo {
 		String name;