rbutil: Fix bootloader installation for various players.

Reworking handling of player specific data (static player configuration,
as well as information retrieved from the server) changed the behaviour
on a non-present configuration entry. This eventually caused the
mountpoint not being set for players that don't have a bootloader file
on disk. Fixing this accidentially removed the default-if-not-found
handling for the bootloader file.

Restore the old default value behaviour for both cases.

Change-Id: I627782ccdef198619fb507f8b09a64811b3bd18f
This commit is contained in:
Dominik Riebeling 2022-04-15 20:51:27 +02:00
parent ff08841ea9
commit 90960adf56
2 changed files with 4 additions and 1 deletions

View file

@ -211,6 +211,9 @@ void BootloaderInstallBase::setBlFile(QStringList sl)
m_blfile = sl.at(a);
}
}
if(m_blfile.isEmpty() && sl.size() > 0) {
m_blfile = sl.at(0);
}
}

View file

@ -261,7 +261,7 @@ QVariant PlayerBuildInfo::value(DeviceInfo item, QString target)
break;
default:
result = playerInfo.value(s);
result = playerInfo.value(s, "");
break;
}