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 --- core/connectionlistmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/connectionlistmodel.cpp') 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); } -- cgit v1.2.3-70-g09d2