From e337fe554e7944a29534417b9a52abc1e1c8c9b7 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 8 Apr 2009 11:53:32 +0200 Subject: Fixing tab focus on new tab loading. Removed unuseful commented code.. --- src/mainview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mainview.cpp') 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)); } } -- cgit v1.2.1