From c6b8d47567daf1e99d85d0a47d48b5562a8b1cc3 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 19 Oct 2011 23:12:41 +0200 Subject: Remove suggestion when response title is the same as typed text In fact, this result is just present in one of the first 2 lines of the query. --- src/urlbar/urlresolver.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/urlbar/urlresolver.cpp') diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index e8352e44..a1459399 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -400,6 +400,9 @@ void UrlResolver::suggestionsReceived(const QString &text, const ResponseList &s QString urlString; Q_FOREACH(const Response & i, suggestions) { + if (text == i.title) + continue; + urlString = i.url; if (urlString.isEmpty()) { -- cgit v1.2.1