UE 0.10.2

- solved a bug in parsing of signed GUID defined sections
This commit is contained in:
Nikolaj Schlej 2015-07-12 08:15:03 +02:00
parent cb9ecc4b43
commit 48384557a5
4 changed files with 69 additions and 46 deletions

View file

@ -55,6 +55,8 @@ QString itemTypeToQString(const UINT8 type)
return QObject::tr("Section");
case Types::FreeSpace:
return QObject::tr("Free space");
case Types::Signature:
return QObject::tr("Signature");
default:
return QObject::tr("Unknown");
}
@ -106,6 +108,13 @@ QString itemSubtypeToQString(const UINT8 type, const UINT8 subtype)
return sectionTypeToQString(subtype);
case Types::FreeSpace:
return QString();
case Types::Signature:
if (subtype == Subtypes::UefiSignature)
return QObject::tr("UEFI");
else if (subtype == Subtypes::Pkcs7Signature)
return QObject::tr("PKCS#7");
else
return QObject::tr("Unknown subtype");
default:
return QObject::tr("Unknown subtype");
}