summaryrefslogtreecommitdiffstats
path: root/core/connectionlistmodel.cpp
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 /core/connectionlistmodel.cpp
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 'core/connectionlistmodel.cpp')
-rw-r--r--core/connectionlistmodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/connectionlistmodel.cpp b/core/connectionlistmodel.cpp
index aaa829949..b4c0f0ea8 100644
--- a/core/connectionlistmodel.cpp
+++ b/core/connectionlistmodel.cpp
@@ -53,5 +53,6 @@ void ConnectionListModel::removeAllAddresses()
int ConnectionListModel::indexOf(QString address)
{
- return m_addresses.indexOf(address);
+ const QRegExp re(address, Qt::CaseInsensitive);
+ return m_addresses.indexOf(re);
}