Do not try to rebase removed sections, fixes #92

This commit is contained in:
vit9696 2018-05-07 08:01:09 +03:00
parent 3993bd7090
commit e25ed49b27

View File

@ -2448,7 +2448,8 @@ void FfsEngine::rebasePeiFiles(const QModelIndex & index)
// If section stores PE32 or TE image // If section stores PE32 or TE image
if (model->subtype(currentSectionIndex) == EFI_SECTION_PE32 || model->subtype(currentSectionIndex) == EFI_SECTION_TE) if (model->subtype(currentSectionIndex) == EFI_SECTION_PE32 || model->subtype(currentSectionIndex) == EFI_SECTION_TE)
// Set rebase action // Set rebase action
model->setAction(currentSectionIndex, Actions::Rebase); if (model->action(currentSectionIndex) != Actions::Remove)
model->setAction(currentSectionIndex, Actions::Rebase);
} }
} }
} }