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); }