diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-22 22:53:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-23 11:49:30 -0700 |
commit | 0ae57cfe921d6107848a7a66deb16861affffc89 (patch) | |
tree | 6062d862e8ebc9b57447de6c642bbf4a91d20099 /mobile-widgets/qmlmanager.cpp | |
parent | f5411b7d68b7f847e1d5c1eb0a75993eeb1b9fff (diff) | |
download | subsurface-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/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index d6c00c870..aa9cf3d75 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1760,6 +1760,11 @@ int QMLManager::getDetectedProductIndex(const QString ¤tVendorText) return m_device_data->getDetectedProductIndex(currentVendorText); } +int QMLManager::getConnectionIndex(const QString &deviceSubstr) +{ + return connectionListModel.indexOf(deviceSubstr); +} + void QMLManager::showDownloadPage(QString deviceString) { // we pass the indices for the three combo boxes for vendor, product, and connection |