diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2011-05-23 10:49:28 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2011-05-23 10:49:28 +0200 |
commit | a9e7ff9a03d8cfee0496247d2426faf217292519 (patch) | |
tree | 6adb327d36120f06a9c0b4464e5347aceeae2569 /src | |
parent | Fixes the size of a tab preview to a constant size, decorate it a bit (diff) | |
download | rekonq-a9e7ff9a03d8cfee0496247d2426faf217292519.tar.xz |
Focus the WebView when a page start to load
Diffstat (limited to 'src')
-rw-r--r-- | src/mainview.cpp | 8 |
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(); + } } |