summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-10-19 23:12:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-10-19 23:12:41 +0200
commitc6b8d47567daf1e99d85d0a47d48b5562a8b1cc3 (patch)
tree179fc242ccabe3f154f30aa0998fdc1f16cc647a /src
parentFix my previous commit (diff)
downloadrekonq-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.
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/urlresolver.cpp3
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())
{