diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-10-17 14:35:41 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-23 22:45:29 +0100 |
commit | 2fe1750bf8cc943d9c8a1a192e47376886859752 (patch) | |
tree | 420f53e7b0602fdd843bc7102be9422c166f5e70 | |
parent | 90d321f0ffb3202c8a7c18298dd5871992ecb86a (diff) | |
download | subsurface-2fe1750bf8cc943d9c8a1a192e47376886859752.tar.gz |
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>
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index 46809b403..d24f85a6d 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -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(); } |