summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-02-27 18:07:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-02-27 18:07:53 +0100
commitb218910128d575346e21dcc2d1ba48554eafc28a (patch)
tree5d88317e0b62095d8dfb972e591071f3406dd868 /src
parentIf KGet is selected as download manager, let it decide destination (diff)
downloadrekonq-b218910128d575346e21dcc2d1ba48554eafc28a.tar.xz
Fix search management
show search on focused tab let search on current page work again :)
Diffstat (limited to 'src')
-rw-r--r--src/webtab/webview.cpp2
-rw-r--r--src/webwindow/webwindow.cpp8
-rw-r--r--src/webwindow/webwindow.h2
3 files changed, 11 insertions, 1 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index dca2ee0e..e7275db2 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -721,7 +721,7 @@ void WebView::search()
KService::Ptr engine = KService::serviceByDesktopPath(a->data().toString());
KUrl urlSearch = KUrl(SearchEngine::buildQuery(engine, selectedText()));
- emit loadUrl(urlSearch, Rekonq::NewTab);
+ emit loadUrl(urlSearch, Rekonq::NewFocusedTab);
}
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 2087a936..55a55e55 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -1004,6 +1004,14 @@ void WebWindow::keyBindings()
}
+
+void WebWindow::findSelectedText()
+{
+ // Just done everything! Just show findbar... ;)
+ m_findBar->show();
+}
+
+
// Main Toolbar methods ----------
diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h
index 032da94f..590022a7 100644
--- a/src/webwindow/webwindow.h
+++ b/src/webwindow/webwindow.h
@@ -115,6 +115,8 @@ private Q_SLOTS:
*/
void notifyMessage(const QString &msg);
+ void findSelectedText();
+
// File Menu slots
void openLocation();
void fileOpen();