diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2009-07-31 21:43:28 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2009-07-31 21:43:28 +0200 |
commit | 8ee38c561d2fd4d19de8c916139f7c88736636c2 (patch) | |
tree | eced0b78d349ae7ad9c758661272abeec71d117f /src/mainview.cpp | |
parent | This commit removes rekonq KDEnetwork dependencies. (diff) | |
download | rekonq-8ee38c561d2fd4d19de8c916139f7c88736636c2.tar.xz |
Fix tab in background feature
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 22a03242..8c1de1f6 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -350,7 +350,7 @@ WebView *MainView::webView(int index) const } -WebView *MainView::newTab() +WebView *MainView::newTab(bool focus) { // line edit UrlBar *urlBar = new UrlBar; // Ownership of widget is passed on to the QStackedWidget (addWidget method). @@ -380,8 +380,8 @@ WebView *MainView::newTab() connect(webView->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *))); addTab(webView, i18n("(Untitled)")); + if (focus) setCurrentWidget(webView); - setCurrentWidget(webView); // this method does NOT take ownership of webView urlBar->setFocus(); emit tabsChanged(); @@ -662,7 +662,7 @@ QLabel *MainView::animatedLoading(int index, bool addMovie) } -void MainView::mouseDoubleClickEvent(QMouseEvent *event) +void MainView::mouseDoubleClickEvent(QMouseEvent *event) //WARNING Need to be fix { if (!childAt(event->pos())) { |