Fix Match URL scheme setting

This commit is contained in:
varjolintu 2018-08-24 17:08:15 +03:00 committed by Jonathan White
parent 7592f40de2
commit 57e60681f2

View File

@ -395,7 +395,8 @@ QList<Entry*> BrowserService::searchEntries(Database* db, const QString& hostnam
QUrl qUrl(url);
// Ignore entry if port or scheme defined in the URL doesn't match
if ((entryQUrl.port() > 0 && entryQUrl.port() != qUrl.port()) || entryScheme.compare(qUrl.scheme()) != 0) {
if ((entryQUrl.port() > 0 && entryQUrl.port() != qUrl.port()) ||
(BrowserSettings::matchUrlScheme() && entryScheme.compare(qUrl.scheme()) != 0)) {
continue;
}