mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
imagewriter: No filtering should get full OS list
This commit is contained in:
parent
c8135c4b1d
commit
9af4f15b27
1 changed files with 8 additions and 1 deletions
|
@ -587,7 +587,14 @@ QByteArray ImageWriter::getFilteredOSlist() {
|
|||
QJsonObject reference_imager_metadata = {};
|
||||
{
|
||||
if (!_completeOsList.isEmpty()) {
|
||||
reference_os_list_array = filterOsListWithHWTags(_completeOsList.object()["os_list"].toArray(), _deviceFilter, _deviceFilterIsInclusive);
|
||||
if (!_deviceFilter.isEmpty()) {
|
||||
reference_os_list_array = filterOsListWithHWTags(_completeOsList.object()["os_list"].toArray(), _deviceFilter, _deviceFilterIsInclusive);
|
||||
} else {
|
||||
// The device filter can be an empty array when a device filter has not been selected, or has explicitly been selected as
|
||||
// "no filtering". In that case, avoid walking the tree and use the unfiltered list.
|
||||
reference_os_list_array = _completeOsList.object()["os_list"].toArray();
|
||||
}
|
||||
|
||||
reference_imager_metadata = _completeOsList.object()["imager"].toObject();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue