Skip to content

Commit

Permalink
Merge pull request #3993 from osmandapp/fix_search
Browse files Browse the repository at this point in the history
Fix search
  • Loading branch information
vshcherb authored Sep 9, 2024
2 parents e30fe7b + a170623 commit f19c9cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Search/OASearchCoreFactory.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,11 @@ - (void)searchPoi:(int)countExtraWords nameFilter:(NSString *)nameFilter phrase:
continue;
searchCriteria->localResources = {r};

searchCriteria->poiAdditionalFilter = QPair<QString, QString>((QString::fromNSString(poiAdditionalFilter.poiSubType)), (QString::fromNSString(poiAdditionalFilter.value)));
searchCriteria->categoriesFilter = QHash<QString, QStringList>();
if (poiAdditionalFilter != nil)
{
searchCriteria->poiAdditionalFilter = QPair<QString, QString>((QString::fromNSString(poiAdditionalFilter.poiSubType)), (QString::fromNSString(poiAdditionalFilter.value)));
searchCriteria->categoriesFilter = QHash<QString, QStringList>();
}
search->performSearch(*searchCriteria,
[self, &rm]
(const OsmAnd::ISearch::Criteria& criteria, const OsmAnd::ISearch::IResultEntry& resultEntry)
Expand Down

0 comments on commit f19c9cf

Please sign in to comment.