diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-01 12:40:10 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-01 12:40:10 +0200 |
commit | 35a014ef4adbeba8119c31fbd6cb6748069ca91d (patch) | |
tree | d5253d18dda607aa8e8b12db719ccd202b3b6b34 | |
parent | Fixing bookmarks layout (diff) | |
download | rekonq-35a014ef4adbeba8119c31fbd6cb6748069ca91d.tar.xz |
Lionel's idea about urlbar ready for queries in the home pages
-rw-r--r-- | src/application.cpp | 1 | ||||
-rw-r--r-- | src/mainview.cpp | 2 | ||||
-rw-r--r-- | src/urlbar.cpp | 5 |
3 files changed, 6 insertions, 2 deletions
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(); } |