summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/models.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 63a5fda4f..b76bd6b8e 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1020,6 +1020,9 @@ bool DiveItem::setData(const QModelIndex& index, const QVariant& value, int role
return false;
int v = value.toInt();
+ if (v == 0)
+ return false;
+
int i;
struct dive *d;
for_each_dive(i, d){