summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-01 02:06:55 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-01 02:06:55 +0200
commit801c6ac411f787c8ad0febab9da2f1b20fc2c84e (patch)
tree5b0ef0b386a7f1c19a9231980d6296945b9b09b2 /src/mainview.cpp
parentFix tab in background feature (diff)
downloadrekonq-801c6ac411f787c8ad0febab9da2f1b20fc2c84e.tar.xz
Some string changes and various fixes
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 8c1de1f6..5fc24512 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -350,7 +350,7 @@ WebView *MainView::webView(int index) const
}
-WebView *MainView::newTab(bool focus)
+WebView *MainView::newTab(bool focused)
{
// line edit
UrlBar *urlBar = new UrlBar; // Ownership of widget is passed on to the QStackedWidget (addWidget method).
@@ -380,8 +380,12 @@ WebView *MainView::newTab(bool focus)
connect(webView->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *)));
addTab(webView, i18n("(Untitled)"));
- if (focus) setCurrentWidget(webView);
-
+
+ if (focused)
+ {
+ setCurrentWidget(webView);
+ }
+
urlBar->setFocus();
emit tabsChanged();