mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-18 17:25:19 -04:00
Fix #38
- added a flag to use FV GUIDs as folder names even if they have non-empty text fields. Thanks to OsxReverser for #38.
This commit is contained in:
parent
2443560c1d
commit
5fd8edf0be
2 changed files with 6 additions and 3 deletions
|
@ -85,7 +85,11 @@ STATUS FfsDumper::recursiveDump(const QModelIndex & index, const QString & path,
|
|||
UINT8 result;
|
||||
for (int i = 0; i < model->rowCount(index); i++) {
|
||||
QModelIndex childIndex = index.child(i, 0);
|
||||
QString childPath = QString("%1/%2 %3").arg(path).arg(i).arg(model->text(childIndex).isEmpty() ? model->name(childIndex) : model->text(childIndex));
|
||||
bool useText = FALSE;
|
||||
if (model->type(childIndex) != Types::Volume)
|
||||
useText = !model->text(childIndex).isEmpty();
|
||||
|
||||
QString childPath = QString("%1/%2 %3").arg(path).arg(i).arg(useText ? model->text(childIndex) : model->name(childIndex));
|
||||
result = recursiveDump(childIndex, childPath, guid);
|
||||
if (result)
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue