From 0ae57cfe921d6107848a7a66deb16861affffc89 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 22 Sep 2018 22:53:43 -0700 Subject: 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 --- mobile-widgets/qmlmanager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qmlmanager.h') diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index b8f44d820..674db311c 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -87,6 +87,7 @@ public: Q_INVOKABLE int getMatchingAddress(const QString &vendor, const QString &product); Q_INVOKABLE int getDetectedVendorIndex(); Q_INVOKABLE int getDetectedProductIndex(const QString ¤tVendorText); + Q_INVOKABLE int getConnectionIndex(const QString &deviceSubstr); static QMLManager *instance(); Q_INVOKABLE void registerError(QString error); -- cgit v1.2.3-70-g09d2