mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
filter: include tags in fulltext search
The tags have been forgotten when implementing the fulltext search. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1777df405f
commit
04b6bb8cc9
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "fulltext.h"
|
||||
#include "dive.h"
|
||||
#include "divesite.h"
|
||||
#include "tag.h"
|
||||
#include "trip.h"
|
||||
#include "qthelper.h"
|
||||
#include <QLocale>
|
||||
|
@ -123,6 +124,8 @@ static std::vector<QString> getWords(const dive *d)
|
|||
tokenize(QString(d->divemaster), res);
|
||||
tokenize(QString(d->buddy), res);
|
||||
tokenize(QString(d->suit), res);
|
||||
for (const tag_entry *tag = d->tag_list; tag; tag = tag->next)
|
||||
tokenize(QString(tag->tag->name), res);
|
||||
for (int i = 0; i < d->cylinders.nr; ++i) {
|
||||
const cylinder_t &cyl = d->cylinders.cylinders[i];
|
||||
tokenize(QString(cyl.type.description), res);
|
||||
|
|
Loading…
Reference in a new issue