summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index f0e14f9b0..86d4a9c1a 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -410,9 +410,12 @@ Kirigami.ScrollablePage {
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
+ if (vendor !== -1)
+ downloadFromDc.vendor = vendor
+ if (product !== -1)
+ downloadFromDc.product = product
+ if (connection !== -1)
+ downloadFromDc.connection = connection
}
}