summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-03 17:52:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-03 17:52:04 -0800
commit0dd87989a878945331ea3266ff0f490f058bfea3 (patch)
tree5636878028e4140acba7e90f6e4501a6b519022f /qt-ui/divelistview.h
parenta3f1dc76816ae385315a91188fdbbcfc2d26d71d (diff)
downloadsubsurface-0dd87989a878945331ea3266ff0f490f058bfea3.tar.gz
Correctly unselect trips when dive list filters change
Oddly Qt left the trips selected (but all dives where unselected in the UI). This got our internal state rather confused. With this change we clean up that mess and go back to just having those dives that were originally selected and are still visible show up as selected. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r--qt-ui/divelistview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index a2e33a09d..a6522fa9a 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -25,6 +25,7 @@ public:
void reload(DiveTripModel::Layout layout, bool forceSort = true);
bool eventFilter(QObject *, QEvent *);
void unselectDives();
+ void clearTripSelection();
void selectDive(int dive_table_idx, bool scrollto = false, bool toggle = false);
void selectDives(const QList<int> &newDiveSelection);
void rememberSelection();