summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index c243c1528..957097507 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -656,6 +656,10 @@ void DivePlannerPointsModel::remove(const QModelIndex &index)
if (index.column() != REMOVE)
return;
+ divedatapoint dp = at(index.row());
+ if (!dp.entered)
+ return;
+
beginRemoveRows(QModelIndex(), index.row(), index.row());
divepoints.remove(index.row());
endRemoveRows();