aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-25 16:12:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-25 16:12:07 -0700
commit4963b27f52c76c684a1ea585e2e2180c68945599 (patch)
treeb60879450f4d57650fbba6ec198ff2eaf8d1a9dd
parentfc2ca3a804310fccd8cef1d4ba425bbf3f3ba010 (diff)
downloadsubsurface-4963b27f52c76c684a1ea585e2e2180c68945599.tar.gz
QML UI: Download from DC: avoid assignments of undefined values
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index e9afd92ab..b9a59adcb 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -136,10 +136,10 @@ Kirigami.Page {
model : importModel
delegate : DownloadedDiveDelegate {
id: delegate
- datetime: model.datetime
- duration: model.duration
- depth: model.depth
- selected: model.selected
+ datetime: model.datetime ? model.datetime : ""
+ duration: model.duration ? model.duration : ""
+ depth: model.depth ? model.depth : ""
+ selected: model.selected ? model.selected : false
backgroundColor: selectAll ? subsurfaceTheme.darkPrimaryColor : subsurfaceTheme.backgroundColor