diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-10-19 23:12:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-10-19 23:12:41 +0200 |
commit | c6b8d47567daf1e99d85d0a47d48b5562a8b1cc3 (patch) | |
tree | 179fc242ccabe3f154f30aa0998fdc1f16cc647a | |
parent | Fix my previous commit (diff) | |
download | rekonq-c6b8d47567daf1e99d85d0a47d48b5562a8b1cc3.tar.xz |
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.
-rw-r--r-- | src/urlbar/urlresolver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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()) { |