Skip to content

Commit 0158efc

Browse files
committed
Fix ProjectManager::_open_selected_projects_check_recovery_mode() method
Check if at least one project is selected.
1 parent 4ce466d commit 0158efc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

editor/project_manager.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,13 @@ void ProjectManager::_open_selected_projects_check_warnings() {
612612
}
613613

614614
void ProjectManager::_open_selected_projects_check_recovery_mode() {
615-
ProjectList::Item project = project_list->get_selected_projects()[0];
615+
Vector<ProjectList::Item> selected_projects = project_list->get_selected_projects();
616+
617+
if (selected_projects.is_empty()) {
618+
return;
619+
}
620+
621+
const ProjectList::Item &project = selected_projects[0];
616622
if (project.missing) {
617623
return;
618624
}

0 commit comments

Comments
 (0)