summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplannermodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 0c90b0a48..10d912846 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -1101,6 +1101,7 @@ void DivePlannerPointsModel::createPlan(bool replanCopy)
copy_dive(&displayed_dive, current_dive);
}
mark_divelist_changed(true);
+ sort_table(&dive_table);
// Remove and clean the diveplan, so we don't delete
// the dive by mistake.