diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-08 11:53:32 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-08 11:53:32 +0200 |
commit | e337fe554e7944a29534417b9a52abc1e1c8c9b7 (patch) | |
tree | 4d45a62e18968790327ec7bee678309032e8a6aa | |
parent | Asking user to close rekonq if there are more than 1 tabs opened.. (diff) | |
download | rekonq-e337fe554e7944a29534417b9a52abc1e1c8c9b7.tar.xz |
Fixing tab focus on new tab loading.
Removed unuseful commented code..
-rw-r--r-- | src/mainview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index ac2355ce..907a7fe5 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -399,7 +399,10 @@ WebView *MainView::newWebView(bool makeCurrent) addTab(webView, i18n("(Untitled)")); if (makeCurrent) + { setCurrentWidget(webView); + currentLineEdit()->setFocus(Qt::ActiveWindowFocusReason); + } if (count() == 1) currentChanged(currentIndex()); @@ -534,7 +537,6 @@ void MainView::webViewLoadStarted() int index = webViewIndex(webView); if (-1 != index) { -// setTabIcon(index, KIcon("rekonq")); setTabIcon(index, QIcon(loadingGitPath)); } } |