diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-25 16:12:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-25 16:12:07 -0700 |
commit | 4963b27f52c76c684a1ea585e2e2180c68945599 (patch) | |
tree | b60879450f4d57650fbba6ec198ff2eaf8d1a9dd /mobile-widgets | |
parent | fc2ca3a804310fccd8cef1d4ba425bbf3f3ba010 (diff) | |
download | subsurface-4963b27f52c76c684a1ea585e2e2180c68945599.tar.gz |
QML UI: Download from DC: avoid assignments of undefined values
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 8 |
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 |