Remove extra check for additional URLs

This commit is contained in:
varjolintu 2019-12-17 14:30:39 +02:00 committed by Jonathan White
parent 8e76c30dd1
commit 663393d994

View File

@ -602,12 +602,10 @@ BrowserService::searchEntries(const QSharedPointer<Database>& db, const QString&
}
// Search for additional URL's starting with KP2A_URL
if (entry->attributes()->keys().contains(ADDITIONAL_URL)) {
for (const auto& key : entry->attributes()->keys()) {
if (key.startsWith(ADDITIONAL_URL) && handleURL(entry->attributes()->value(key), url, submitUrl)) {
entries.append(entry);
continue;
}
for (const auto& key : entry->attributes()->keys()) {
if (key.startsWith(ADDITIONAL_URL) && handleURL(entry->attributes()->value(key), url, submitUrl)) {
entries.append(entry);
continue;
}
}