From 2fe1750bf8cc943d9c8a1a192e47376886859752 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 17 Oct 2018 14:35:41 -0400 Subject: 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 --- core/subsurface-qt/DiveObjectHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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(); } -- cgit v1.2.3-70-g09d2