Merge pull request #36855 from kuruk-mm/signals_fix_sort_crash

Signals: filter_changed from ProjectListFilter now is emitted when it's on scene tree...
This commit is contained in:
Rémi Verschelde 2020-03-07 23:33:24 +01:00 committed by GitHub
commit 78adce833b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}
}