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:
commit
78adce833b
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue