diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-01 02:06:55 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-01 02:06:55 +0200 |
commit | 801c6ac411f787c8ad0febab9da2f1b20fc2c84e (patch) | |
tree | 5b0ef0b386a7f1c19a9231980d6296945b9b09b2 /src/mainview.cpp | |
parent | Fix tab in background feature (diff) | |
download | rekonq-801c6ac411f787c8ad0febab9da2f1b20fc2c84e.tar.xz |
Some string changes and various fixes
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 10 |
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(); |