summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-11-07 22:31:43 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-11-07 22:31:43 +0100
commit23fdf29c98c402e96e7cb14eecba30671bc72d64 (patch)
tree2732854f3ded89546f86ce479654c569549a9ba4 /src/urlbar/urlresolver.cpp
parentFirst bunch of fixes for the suggestions. (diff)
downloadrekonq-23fdf29c98c402e96e7cb14eecba30671bc72d64.tar.xz
Let suggestions work also without search engines ones.
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r--src/urlbar/urlresolver.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index c95557cf..57d6ca64 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -412,8 +412,16 @@ void UrlResolver::suggestionsReceived(const QString &text, const ResponseList &s
Q_FOREACH(const Response &i, suggestions)
{
+ QString urlString = i.url;
+ if(urlString.isEmpty())
+ {
+ QStringList list;
+ list << QL1S("kuriikwsfilter");
+ urlString = KUriFilter::self()->filteredUri(i.title, list);
+ }
kDebug() << "RESPONSE URL: " << i.url;
- UrlSearchItem gItem(UrlSearchItem::Suggestion, i.url, i.title, i.description, i.image, i.image_width, i.image_height);
+
+ UrlSearchItem gItem(UrlSearchItem::Suggestion, urlString, i.title, i.description, i.image, i.image_width, i.image_height);
sugList << gItem;
}
emit suggestionsReady(sugList, _typedString);