diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-16 01:22:44 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-16 01:22:44 -0700 |
commit | 77a3e6ac704c84548d383818dfbe17e3378b8151 (patch) | |
tree | cfb54db6bea4a19aa9edc06b34563737141d311b /mobile-widgets | |
parent | 27deb317b00aa61bedea8d781d8cff8be9a3720e (diff) | |
download | subsurface-77a3e6ac704c84548d383818dfbe17e3378b8151.tar.gz |
QML UI: clear the previous list when downloading
When you start a new session with Download from DC, clear out the table
from the last attempt before adding the page.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 1 | ||||
-rw-r--r-- | mobile-widgets/qml/main.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index c61ac7df1..460fa151e 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -16,6 +16,7 @@ Kirigami.Page { title: qsTr("Dive Computer") property bool selectAll : false + property alias dcImportModel: importModel DCDownloadThread { id: downloadThread diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index c4a6a99d6..5a5d7d20e 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -157,6 +157,7 @@ Kirigami.ApplicationWindow { text: qsTr("Download from DC") enabled: true onTriggered: { + downloadFromDc.dcImportModel.clearTable() stackView.push(downloadFromDc) } } |