From 35a014ef4adbeba8119c31fbd6cb6748069ca91d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 1 Oct 2009 12:40:10 +0200 Subject: Lionel's idea about urlbar ready for queries in the home pages --- src/application.cpp | 1 - src/mainview.cpp | 2 +- src/urlbar.cpp | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/application.cpp b/src/application.cpp index 269a81af..ba456d2c 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -428,6 +428,5 @@ void Application::homePage(const KUrl &url) WebView *w = view->currentWebView(); HomePage p(w); w->setHtml( p.rekonqHomePage(url), url); - view->urlBar()->setFocus(); return; } diff --git a/src/mainview.cpp b/src/mainview.cpp index f994aa25..20cac359 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -471,7 +471,7 @@ void MainView::webViewLoadFinished(bool ok) webViewIconChanged(); emit browserTabLoading(false); - + // don't display messages for background tabs if (index != currentIndex()) { diff --git a/src/urlbar.cpp b/src/urlbar.cpp index 54aa0ecf..ba50d068 100644 --- a/src/urlbar.cpp +++ b/src/urlbar.cpp @@ -133,6 +133,11 @@ void UrlBar::setupLineEdit() void UrlBar::setUrl(const QUrl& url) { + if(url.scheme() == "about") + { + setFocus(); + return; + } m_currentUrl = url; slotUpdateUrl(); } -- cgit v1.2.1