summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-08 11:53:32 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-08 11:53:32 +0200
commite337fe554e7944a29534417b9a52abc1e1c8c9b7 (patch)
tree4d45a62e18968790327ec7bee678309032e8a6aa /src/mainview.cpp
parentAsking user to close rekonq if there are more than 1 tabs opened.. (diff)
downloadrekonq-e337fe554e7944a29534417b9a52abc1e1c8c9b7.tar.xz
Fixing tab focus on new tab loading.
Removed unuseful commented code..
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp4
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));
}
}