diff options
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 7bf79671c..ae866f23c 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -508,20 +508,6 @@ Kirigami.ScrollablePage { } } - function showDownloadPage(vendor, product, connection) { - downloadFromDc.dcImportModel.clearTable() - pageStack.push(downloadFromDc) - if (vendor !== undefined && product !== undefined && connection !== undefined) { - /* set up the correct values on the download page */ - if (vendor !== -1) - downloadFromDc.vendor = vendor - if (product !== -1) - downloadFromDc.product = product - if (connection !== -1) - downloadFromDc.connection = connection - } - } - property QtObject downloadFromDCAction: Kirigami.Action { icon { name: ":/icons/downloadDC" @@ -529,7 +515,7 @@ Kirigami.ScrollablePage { } text: qsTr("Download dives") onTriggered: { - showDownloadPage() + rootItem.showDownloadPage() } } |