mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
323a71941d
commit
f8768e40b4
1 changed files with 0 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue