summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-22 22:53:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-23 11:49:30 -0700
commit0ae57cfe921d6107848a7a66deb16861affffc89 (patch)
tree6062d862e8ebc9b57447de6c642bbf4a91d20099 /mobile-widgets/qml/DownloadFromDiveComputer.qml
parentf5411b7d68b7f847e1d5c1eb0a75993eeb1b9fff (diff)
downloadsubsurface-0ae57cfe921d6107848a7a66deb16861affffc89.tar.gz
Mobile/remember DCs: try to match device names
We only store the address part of the connection name, so don't try to find an exact match, try to find the sub-string. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index f90086ac9..a2545db13 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -183,7 +183,7 @@ Kirigami.Page {
function setDC(vendor, product, device) {
comboVendor.currentIndex = comboVendor.find(vendor);
comboProduct.currentIndex = comboProduct.find(product);
- comboConnection.currentIndex = comboConnection.find(device);
+ comboConnection.currentIndex = manager.getConnectionIndex(device);
}
SsrfButton {
id: dc1