Fix ProjectManager::_open_selected_projects_check_recovery_mode() method
Check if at least one project is selected.
This commit is contained in:
parent
4ce466d7fa
commit
0158efc153
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue