Commit e273bd5d authored by Jan Grulich's avatar Jan Grulich

Fix comparison between appstream ids

When we construct a QUrl from an appstream id using capital letters
it will be converted to lower letters which makes comparison to fail
parent 8c50c5f9
......@@ -915,10 +915,10 @@ ResultsStream * FlatpakBackend::search(const AbstractResourcesBackend::Filters &
continue;
}
if (!filter.resourceUrl.isEmpty() && r->appstreamId() != filter.resourceUrl.host())
if (!filter.resourceUrl.isEmpty() && filter.resourceUrl.host().compare(r->appstreamId(), Qt::CaseInsensitive) != 0)
continue;
if (r->state()<filter.state)
if (r->state() < filter.state)
continue;
if (filter.search.isEmpty() || r->name().contains(filter.search, Qt::CaseInsensitive) || r->comment().contains(filter.search, Qt::CaseInsensitive)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment