summaryrefslogtreecommitdiffstats
path: root/core/connectionlistmodel.cpp
diff options
context:
space:
mode:
authorGravatar Jocke <j.bygdell@gmail.com>2018-10-09 18:40:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-09 21:04:23 -0700
commit0f588f522773aa280e72414d282c6385c26655d9 (patch)
treeba8c19d48b4d48c3350ee67e51fb88bae7455dec /core/connectionlistmodel.cpp
parentc70225f5751326ef1d108c37fa032032c2cfca2d (diff)
downloadsubsurface-0f588f522773aa280e72414d282c6385c26655d9.tar.gz
Substring match BT address
Since a known DC will have the name prepended to the BT/BLE addresss we need to substring match the BT address. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'core/connectionlistmodel.cpp')
-rw-r--r--core/connectionlistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/connectionlistmodel.cpp b/core/connectionlistmodel.cpp
index b4c0f0ea8..3cc9c24f9 100644
--- a/core/connectionlistmodel.cpp
+++ b/core/connectionlistmodel.cpp
@@ -53,6 +53,6 @@ void ConnectionListModel::removeAllAddresses()
int ConnectionListModel::indexOf(QString address)
{
- const QRegExp re(address, Qt::CaseInsensitive);
+ const QRegExp re(".*" + address + ".*", Qt::CaseInsensitive);
return m_addresses.indexOf(re);
}