From 0f588f522773aa280e72414d282c6385c26655d9 Mon Sep 17 00:00:00 2001 From: Jocke Date: Tue, 9 Oct 2018 18:40:28 +0200 Subject: [PATCH] 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 --- core/connectionlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }