From 86b48093ebcb361ae8091f7e5c6ac7f61d124d68 Mon Sep 17 00:00:00 2001 From: Mateo Miccino Date: Fri, 6 Mar 2020 11:21:14 -0300 Subject: Signals: filter_changed from ProjectListFilter now is emitted when it's on scene tree to avoid unexpected call --- editor/project_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 1320ec46b5..94f9bf2767 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -2740,7 +2740,8 @@ void ProjectListFilter::_filter_option_selected(int p_idx) { FilterOption selected = (FilterOption)(filter_option->get_selected()); if (_current_filter != selected) { _current_filter = selected; - emit_signal("filter_changed"); + if (is_inside_tree()) + emit_signal("filter_changed"); } } -- cgit v1.2.3