summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-10-05 20:25:44 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-10-05 20:25:44 +0200
commitfd29191d4d6b91358f3188c9aba16183bcda1536 (patch)
tree0199e41e70a8f5c0e2fd906a7d2a43b8b24a90d7 /src
parentuse QL1C and QL1S (diff)
downloadrekonq-fd29191d4d6b91358f3188c9aba16183bcda1536.tar.xz
fix opensearch suggestions url
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/listitem.cpp2
-rw-r--r--src/urlbar/urlresolver.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index d84a5488..c60e69a8 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -429,7 +429,7 @@ SuggestionListItem::SuggestionListItem(const UrlSearchItem &item, const QString
QHBoxLayout *hLayout = new QHBoxLayout;
hLayout->setSpacing(4);
- hLayout->addWidget(new IconLabel(SearchEngine::buildQuery(UrlResolver::searchEngine(), ""), this));
+ hLayout->addWidget(new IconLabel(item.url, this));
hLayout->addWidget(new TextLabel(item.title, SearchEngine::extractQuery(text), this));
hLayout->addWidget(new TypeIconLabel(item.type, this));
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 8aea840c..8ecc5537 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -409,7 +409,7 @@ void UrlResolver::suggestionsReceived(const QString &text, const QStringList &su
Q_FOREACH(const QString &s, suggestions)
{
- UrlSearchItem gItem(UrlSearchItem::Suggestion, s, s);
+ UrlSearchItem gItem(UrlSearchItem::Suggestion, SearchEngine::buildQuery(UrlResolver::searchEngine(), s), s);
sugList << gItem;
}
emit suggestionsReady(sugList, _typedString);