Mobile/filter: add marker between entries in full text search

Otherwise we could match the end of one string and the beginning of the next,
so having a buddy name Linus and a dive master named Alvin would be matched
by USA.

Also add Notes to the full text search (I had forgotten those earlier).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-10-17 14:35:41 -04:00
parent 90d321f0ff
commit 2fe1750bf8

View file

@ -438,5 +438,5 @@ QStringList DiveObjectHelper::firstGas() const
// for a full text search / filter function
QString DiveObjectHelper::fullText() const
{
return trip() + location() + buddy() + divemaster() + suit() + tags();
return trip() + ":-:" + location() + ":-:" + buddy() + ":-:" + divemaster() + ":-:" + suit() + ":-:" + tags() + ":-:" + notes();
}