summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 44a54156..2d8d0e77 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -517,7 +517,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
{
a = new KAction(i18nc("Search selected text with the default search engine", "Search with %1",
defaultEngine->name()), &menu);
- a->setIcon(IconManager::self()->iconForUrl(SearchEngine::buildQuery(defaultEngine, "")));
+ a->setIcon(IconManager::self()->iconForUrl(defaultEngine->property("Query").toUrl()));
a->setData(defaultEngine->entryPath());
connect(a, SIGNAL(triggered(bool)), this, SLOT(search()));
menu.addAction(a);
@@ -529,7 +529,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
Q_FOREACH(const KService::Ptr & engine, SearchEngine::favorites())
{
a = new KAction(i18nc("@item:inmenu Search, %1 = search engine", "With %1", engine->name()), &menu);
- a->setIcon(IconManager::self()->iconForUrl(SearchEngine::buildQuery(engine, "")));
+ a->setIcon(IconManager::self()->iconForUrl(engine->property("Query").toUrl()));
a->setData(engine->entryPath());
connect(a, SIGNAL(triggered(bool)), this, SLOT(search()));
searchMenu->addAction(a);
@@ -639,7 +639,7 @@ void WebView::mousePressEvent(QMouseEvent *event)
{
KService::Ptr defaultEngine = SearchEngine::defaultEngine();
if (defaultEngine) // check if a default engine is set
- load(KUrl(SearchEngine::buildQuery(defaultEngine, clipboardContent)));
+ load(KUrl(SearchEngine::buildQuery(clipboardContent)));
}
}
break;