summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-20 14:56:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-02-20 09:04:56 -0800
commit5033c02a110e143b02d6995247faa8c6180890a0 (patch)
tree8a8588d09b64d9bcf90485c40b71f2b411a3c30b /qt-models
parentf78e686b3536b498b4bcea63197795dc3032f0e1 (diff)
downloadsubsurface-5033c02a110e143b02d6995247faa8c6180890a0.tar.gz
Filter: change default mode for location to any-of
Since a dive has only one location all-of makes little sense. It *can* make sense if the user enters two substrings (e.g. Tofo and Reef), but generally it won't. Therefore change the default to any-of. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/filtermodels.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h
index 7370b8d5f..996c2efaa 100644
--- a/qt-models/filtermodels.h
+++ b/qt-models/filtermodels.h
@@ -44,7 +44,7 @@ struct FilterData {
QStringList equipment;
Mode tagsMode = Mode::ALL_OF;
Mode peopleMode = Mode::ALL_OF;
- Mode locationMode = Mode::ALL_OF;
+ Mode locationMode = Mode::ANY_OF;
Mode equipmentMode = Mode::ALL_OF;
bool logged = true;
bool planned = true;