diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-08-08 06:05:02 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:14:22 -0700 |
commit | 593978a473689f87b1bc7a3f11c56e36eb482970 (patch) | |
tree | a07f80cce7fdcedf9e9e90011e5060b31432e492 /mobile-widgets | |
parent | de8359e4f0f0560ff43b15af587d4c2865238adf (diff) | |
download | subsurface-593978a473689f87b1bc7a3f11c56e36eb482970.tar.gz |
QML UI: set indices when showing Download page
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 54f657a30..f0e14f9b0 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -405,9 +405,15 @@ Kirigami.ScrollablePage { } } - function showDownloadPage() { + function showDownloadPage(vendor, product, connection) { downloadFromDc.dcImportModel.clearTable() stackView.push(downloadFromDc) + if (vendor !== undefined && product !== undefined && connection !== undefined) { + /* set up the correct values on the download page */ + downloadFromDc.vendor = vendor + downloadFromDc.product = product + downloadFromDc.connection = connection + } } property QtObject downloadFromDCAction: Kirigami.Action { |