From 02ef58a48bfa9042e034e83cb128ae6b7f83628e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 25 Jan 2021 16:15:30 +0100 Subject: 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 --- qt-models/diveplannermodel.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'qt-models') 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(); -- cgit v1.2.3-70-g09d2