summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-01 00:32:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-01 00:55:34 -0800
commita0aa27e86471ec94e00acfd874ca7cdd9c793308 (patch)
treeebd7c42a620723a8f57784715c19af8627de3887 /qt-models
parent2c28b16b26bd917670f84102d6535abf99a30d4d (diff)
downloadsubsurface-a0aa27e86471ec94e00acfd874ca7cdd9c793308.tar.gz
QML UI: handle editing of depth
Getting closer to being able to really edit / add dives in the mobile UI. This works for manually added dives - needs a bit more thought for dives downloaded from dive computers as we don't necessarily want to change the maxdepth in conflict with the samples. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divelistmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp
index 56205e26a..e812f3df7 100644
--- a/qt-models/divelistmodel.cpp
+++ b/qt-models/divelistmodel.cpp
@@ -130,6 +130,7 @@ QString DiveListModel::startAddDive()
if (pd && pd->number > 0)
nr = pd->number + 1;
d->number = nr;
+ d->dc.model = strdup("manually added dive");
add_single_dive(-1, d);
addDive(d);
return QString::number(d->id);