From fc8e0e7b19225ab398760e9d7cfa03a453456576 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sat, 16 Jun 2018 08:44:08 +0300 Subject: [PATCH] Remove title matching --- src/browser/BrowserService.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/browser/BrowserService.cpp b/src/browser/BrowserService.cpp index 7d3293bd9..956eaf0b7 100644 --- a/src/browser/BrowserService.cpp +++ b/src/browser/BrowserService.cpp @@ -375,14 +375,11 @@ QList BrowserService::searchEntries(Database* db, const QString& hostnam } for (Entry* entry : EntrySearcher().search(hostname, rootGroup, Qt::CaseInsensitive)) { - QString title = entry->title(); QString url = entry->url(); - // Filter to match hostname in Title and Url fields - if ((!title.isEmpty() && hostname.contains(title)) - || (!url.isEmpty() && hostname.contains(url)) - || (matchUrlScheme(title) && hostname.endsWith(QUrl(title).host())) - || (matchUrlScheme(url) && hostname.endsWith(QUrl(url).host())) ) { + // Filter to match hostname in URL field + if ((!url.isEmpty() && hostname.contains(url)) + || (matchUrlScheme(url) && hostname.endsWith(QUrl(url).host()))) { entries.append(entry); } }