summaryrefslogtreecommitdiffstats
path: root/qt-models/treemodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-25 12:38:25 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-25 08:24:36 -0800
commit739b27427cfb5119eebe214c984843cd5d155620 (patch)
tree2f3d8969508b0e4f5ada29247d341b904dd41146 /qt-models/treemodel.cpp
parente20e1aad0e88fab376ab5423bf03e721f2a76940 (diff)
downloadsubsurface-739b27427cfb5119eebe214c984843cd5d155620.tar.gz
LocationFilter: use equality instead of substring comparison
The location filter used a substring comparison, which had the side effect that dives with the location "Test 1" were shown when filtering for "Test 12". Moreover, avoid a deep copy of the location list. This is done by looping over one item less than rowCount() instead of removing the last item. While doing this, remove an unnecessary if-statement. This commit partially fixes #675. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/treemodel.cpp')
0 files changed, 0 insertions, 0 deletions