From e25ed49b277e1f430c6505b65220b9797daa1035 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Mon, 7 May 2018 08:01:09 +0300 Subject: [PATCH] Do not try to rebase removed sections, fixes #92 --- ffsengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffsengine.cpp b/ffsengine.cpp index 21d72ee..2ea6bb0 100644 --- a/ffsengine.cpp +++ b/ffsengine.cpp @@ -2448,7 +2448,8 @@ void FfsEngine::rebasePeiFiles(const QModelIndex & index) // If section stores PE32 or TE image if (model->subtype(currentSectionIndex) == EFI_SECTION_PE32 || model->subtype(currentSectionIndex) == EFI_SECTION_TE) // Set rebase action - model->setAction(currentSectionIndex, Actions::Rebase); + if (model->action(currentSectionIndex) != Actions::Remove) + model->setAction(currentSectionIndex, Actions::Rebase); } } }