Commit 86b48093 by Mateo Miccino

Signals: filter_changed from ProjectListFilter now is emitted when it's on scene…

Signals: filter_changed from ProjectListFilter now is emitted when it's on scene tree to avoid unexpected call
parent 8cb6d5da
...@@ -2740,7 +2740,8 @@ void ProjectListFilter::_filter_option_selected(int p_idx) { ...@@ -2740,7 +2740,8 @@ void ProjectListFilter::_filter_option_selected(int p_idx) {
FilterOption selected = (FilterOption)(filter_option->get_selected()); FilterOption selected = (FilterOption)(filter_option->get_selected());
if (_current_filter != selected) { if (_current_filter != selected) {
_current_filter = selected; _current_filter = selected;
emit_signal("filter_changed"); if (is_inside_tree())
emit_signal("filter_changed");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment