Only check for scheme matches when an entry has a scheme (#2426)

This commit is contained in:
Nathan Merritt 2018-10-28 13:51:20 -04:00 committed by Jonathan White
parent f31d65bdaf
commit c9cab250c7

View File

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