From 8dba308d54880a9fef5a774dd60005200b22a817 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Tue, 4 Feb 2020 12:28:26 +0200 Subject: [PATCH] Do not add duplicate entries --- src/browser/BrowserService.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/browser/BrowserService.cpp b/src/browser/BrowserService.cpp index b182b535e..35db02a05 100644 --- a/src/browser/BrowserService.cpp +++ b/src/browser/BrowserService.cpp @@ -610,7 +610,9 @@ BrowserService::searchEntries(const QSharedPointer& db, const QString& // Search for additional URL's starting with KP2A_URL for (const auto& key : entry->attributes()->keys()) { - if (key.startsWith(ADDITIONAL_URL) && handleURL(entry->attributes()->value(key), url, submitUrl)) { + if (key.startsWith(ADDITIONAL_URL) && + handleURL(entry->attributes()->value(key), url, submitUrl) && + !entries.contains(entry)) { entries.append(entry); continue; }