Skip to content

Commit

Permalink
Fix ProjectManager::_open_selected_projects_check_recovery_mode() m…
Browse files Browse the repository at this point in the history
…ethod

Check if at least one project is selected.
  • Loading branch information
mateuseap committed Jan 15, 2025
1 parent 4ce466d commit f129f22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,13 @@ void ProjectManager::_open_selected_projects_check_warnings() {
}

void ProjectManager::_open_selected_projects_check_recovery_mode() {
ProjectList::Item project = project_list->get_selected_projects()[0];
Vector<ProjectList::Item> selected_projects = project_list->get_selected_projects();

if (selected_projects.is_empty()) {
return;
}

const ProjectList::Item& project = selected_projects[0];
if (project.missing) {
return;
}
Expand Down

0 comments on commit f129f22

Please sign in to comment.