mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Desktop: Add Country to the Fields Indexed for Fulltext Search.
Add 'Country' to the fields that are indexed for fulltext search - this seems to be a quite intuitive choice as 'Country' is also a field that is available in the dive list view. Fixes #4134. Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
parent
8a5009786e
commit
1508d305b8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
desktop: add country to the fields indexed for full text search
|
||||
import: update libdivecomputer version, add support for the Scubapro G3 / Luna and Shearwater Tern
|
||||
desktop: add a button linking to the 'Contribute' page
|
||||
mobile: fix configuration of decompression ceiling and gradient factors
|
||||
|
|
|
@ -139,8 +139,12 @@ static std::vector<QString> getWords(const dive *d)
|
|||
}
|
||||
// TODO: We should tokenize all dive-sites and trips first and then
|
||||
// take the tokens from a cache.
|
||||
if (d->dive_site)
|
||||
if (d->dive_site) {
|
||||
tokenize(d->dive_site->name, res);
|
||||
const char *country = taxonomy_get_country(&d->dive_site->taxonomy);
|
||||
if (country)
|
||||
tokenize(country, res);
|
||||
}
|
||||
// TODO: We should index trips separately!
|
||||
if (d->divetrip)
|
||||
tokenize(d->divetrip->location, res);
|
||||
|
|
Loading…
Reference in a new issue