summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-25 15:28:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-25 10:23:05 -0700
commit702d8c754dd8ad56f5a7dc88e466bc4ca8c65521 (patch)
treeb1871a8da3b63f620eacd9e28c782ac4153673ca /desktop-widgets/divelistview.cpp
parent9fae262188afc52eff971b9e81f9f6b61eef88a9 (diff)
downloadsubsurface-702d8c754dd8ad56f5a7dc88e466bc4ca8c65521.tar.gz
desktop: remove selectionChangeDone() from DiveListView::selectDive()
This was erroneous, as it should only be called at the end of a selection change, not after every single dive. It made selection of multiple dives extremely slow. Reported-by: Jan Mulder <jlmulder@xs4all.nl> Debugged-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r--desktop-widgets/divelistview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index bce8b2eb3..b83ff169b 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -322,7 +322,6 @@ void DiveListView::selectDive(int i)
expand(idx.parent());
setAnimated(true);
}
- selectionChangeDone();
}
void DiveListView::selectDives(const QList<int> &newDiveSelection)