From 593978a473689f87b1bc7a3f11c56e36eb482970 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Aug 2018 06:05:02 -0700 Subject: QML UI: set indices when showing Download page Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3-70-g09d2