summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-28 14:41:38 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-28 15:10:57 +0000
commitf8768e40b420fe89fe12e67d35f2bd8fc85a4995 (patch)
treeb028cf8ec4dd34a0f4cf0bbba459cc290c29096d /desktop-widgets/divelistview.cpp
parent323a71941d655916ac4a8d870fe59d160b4000da (diff)
downloadsubsurface-f8768e40b420fe89fe12e67d35f2bd8fc85a4995.tar.gz
Dive list: remove rememberSelection() without restoreSelection()
Remove three cases of rememberSelection() which did not possess the corresponding restoreSelection() twins. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r--desktop-widgets/divelistview.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index ba67a63da..c01a6189a 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -780,7 +780,6 @@ void DiveListView::newTripAbove()
return;
//TODO: port to c-code.
int idx;
- rememberSelection();
QVector<dive *> dives;
for_each_dive (idx, d) {
if (d->selected)
@@ -820,8 +819,6 @@ void DiveListView::addToTrip(int delta)
// no dive, no trip? get me out of here
return;
- rememberSelection();
-
QVector<dive *> dives;
if (d->selected) { // there are possibly other selected dives that we should add
int idx;
@@ -850,8 +847,6 @@ void DiveListView::markDiveInvalid()
MainWindow::instance()->refreshDisplay();
if (prefs.display_invalid_dives == false) {
clearSelection();
- // select top dive that isn't marked invalid
- rememberSelection();
}
}