summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-28 11:48:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-28 11:54:33 -0700
commit3f0d21046e92701de200a00f12bde20a7ad3a55c (patch)
treed5b4134865a3153da692c913aa7f829f08ad8bd0 /mobile-widgets
parent84b1b63d46e4868808cc8dbd1c4fef8078ddcb16 (diff)
downloadsubsurface-3f0d21046e92701de200a00f12bde20a7ad3a55c.tar.gz
QML UI: add downloaded dives to dive list
This already takes into account which of those dives were selected. Right now all we have is select all or none - this needs actual support in the UI, but once that's there, it will just work (famous last words). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index a794c5bc6..c3bb9ce2d 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -123,11 +123,11 @@ Kirigami.Page {
text: qsTr("Accept")
enabled: false
onClicked: {
- manager.appendTextToLog("Save downloaded dives")
- for (var i = 0; i < importModel.rowCount(); i++) {
- // figure out which ones are selected
- // save the selected dive to the diveTable
- }
+ manager.appendTextToLog("Save downloaded dives that were selected")
+ importModel.recordDives()
+ manager.saveChangesLocal()
+ diveModel.clear()
+ diveModel.addAllDives()
stackView.pop();
}
}