summaryrefslogtreecommitdiffstats
path: root/core/fulltext.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-29 08:26:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-29 16:13:03 -0700
commit0b7ba197751ea6ba57db1f9ec116dd791c3b53b7 (patch)
tree99578f3330e8477b682de019f6a724d1c7fc9641 /core/fulltext.cpp
parent0f4154bacccd0884ffbd5ae5bfa1fa16991675dc (diff)
downloadsubsurface-0b7ba197751ea6ba57db1f9ec116dd791c3b53b7.tar.gz
fulltext: remember original query
So far, the fulltext-query structure only saves an canonicalized upper-cased version of the query. However, if we want to save the fulltext query to the log (filter presets) or want to restore an old fulltext query, we have to store the original query. We don't want to confront the user with the mangled upper-cased version. Therefore, also save the original version. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/fulltext.cpp')
-rw-r--r--core/fulltext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fulltext.cpp b/core/fulltext.cpp
index 9dc6d826c..38afb0798 100644
--- a/core/fulltext.cpp
+++ b/core/fulltext.cpp
@@ -278,6 +278,7 @@ FullTextResult FullText::find(const FullTextQuery &q, StringFilterMode mode) con
FullTextQuery &FullTextQuery::operator=(const QString &s)
{
+ originalQuery = s;
words.clear();
tokenize(s, words);
return *this;