From f8768e40b420fe89fe12e67d35f2bd8fc85a4995 Mon Sep 17 00:00:00 2001
From: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Date: Sun, 28 Oct 2018 14:41:38 +0100
Subject: 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>
---
 desktop-widgets/divelistview.cpp | 5 -----
 1 file changed, 5 deletions(-)

(limited to 'desktop-widgets')

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();
 	}
 }
 
-- 
cgit v1.2.3-70-g09d2