Godot Engine – Multi-platform 2D and 3D game engine
Check in QuickOpenResultContainer::init if selected_history exists before using it
AegisTTN4d5d79d22e8f
diff --git a/editor/gui/editor_quick_open_dialog.cpp b/editor/gui/editor_quick_open_dialog.cppindex c64c62a55b8..253c7307fb3 100644--- a/editor/gui/editor_quick_open_dialog.cpp+++ b/editor/gui/editor_quick_open_dialog.cpp@@ -530,7 +530,7 @@ void QuickOpenResultContainer::init(const Vector<StringName> &p_base_types) {bool history_modified = false;- if (first_open && history_file->load(_get_cache_file_path()) == OK) {+ if (first_open && history_file->load(_get_cache_file_path()) == OK && history_file->has_section("selected_history")) {// Load history when opening for the first time.file_type_icons.insert(SNAME("__default_icon"), get_editor_theme_icon(SNAME("Object")));