diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-07 23:33:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 23:33:24 +0100 |
commit | 78adce833bce49ef1bf1503956a6162a1c6dd8b2 (patch) | |
tree | b15175a383ea12045a61dbc23295106ecd4a7f00 | |
parent | 8cb6d5daa4e41443d658265379b6079d8a087b41 (diff) | |
parent | 86b48093ebcb361ae8091f7e5c6ac7f61d124d68 (diff) |
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...
-rw-r--r-- | editor/project_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 1320ec46b5..94f9bf2767 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -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"); } } |