summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-25 16:15:30 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-02 13:53:23 -0700
commit02ef58a48bfa9042e034e83cb128ae6b7f83628e (patch)
treecb3be4acfc6e8747c16d3bc751a126d4b059f09c /qt-models
parent891839d254b8383abea7933ec45aa896d43100c7 (diff)
downloadsubsurface-02ef58a48bfa9042e034e83cb128ae6b7f83628e.tar.gz
cleanup: remove pointless cylinder model update
In DivePlannerPointsModel::clear(), the cylinder model is updated before it is cleared. This must be an artifact. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplannermodel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 767edc80a..bb52a1061 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -993,7 +993,6 @@ void DivePlannerPointsModel::clear()
{
bool oldRecalc = setRecalc(false);
- cylinders.updateDive(&displayed_dive);
beginResetModel();
divepoints.clear();
endResetModel();