summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index c7d66fa1..fb5e3a97 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -349,6 +349,8 @@ void MainView::newTab()
{
WebView *w = newWebTab()->view();
+ currentUrlBar()->setFocus();
+
switch (ReKonfig::newTabsBehaviour())
{
case 0: // new tab page
@@ -363,7 +365,6 @@ void MainView::newTab()
default:
break;
}
- currentUrlBar()->setFocus();
}
@@ -530,6 +531,11 @@ void MainView::webViewLoadStarted()
emit browserTabLoading(true);
emit showStatusBarMessage(i18n("Loading..."), Rekonq::Info);
+
+ if (view == currentWebTab()->view() && view->url().scheme() != QL1S("about"))
+ {
+ view->setFocus();
+ }
}