mirror of
https://github.com/godotengine/godot
synced 2024-09-05 22:20:21 +00:00
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
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue