Skip to content

Commit

Permalink
Merge pull request #36855 from kuruk-mm/signals_fix_sort_crash
Browse files Browse the repository at this point in the history
Signals: filter_changed from ProjectListFilter now is emitted when it's on scene tree...
  • Loading branch information
akien-mga authored Mar 7, 2020
2 parents 8cb6d5d + 86b4809 commit 78adce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 78adce8

Please sign in to comment.