Godot Engine – Multi-platform 2D and 3D game engine
Fix error on quick open search with no possible options
AegisTTNe2c1feb1eda5
diff --git a/editor/gui/editor_quick_open_dialog.cpp b/editor/gui/editor_quick_open_dialog.cppindex c8cc1a7860f..c64c62a55b8 100644--- a/editor/gui/editor_quick_open_dialog.cpp+++ b/editor/gui/editor_quick_open_dialog.cpp@@ -774,10 +774,12 @@ void QuickOpenResultContainer::update_results() {candidates.clear();candidates_uids.clear();- if (query.is_empty()) {- _use_default_candidates();- } else {- _score_and_sort_candidates();+ if (max_total_results != 0) {+ if (query.is_empty()) {+ _use_default_candidates();+ } else {+ _score_and_sort_candidates();+ }}_update_result_items(MIN(candidates.size(), max_total_results), 0);