diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-14 18:33:32 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-14 18:33:32 +0200 |
commit | e1791ac7190b8fc570c7097f48d2ad2b5cd29ee1 (patch) | |
tree | a87442810437719a3b99b60649972f7e57ed93a3 /src/mainview.cpp | |
parent | Bugfix: when trying to open link in new tab & network request fails (no (diff) | |
download | rekonq-e1791ac7190b8fc570c7097f48d2ad2b5cd29ee1.tar.xz |
Open new tab near previous
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 7c91b992..3836ddd0 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -274,7 +274,8 @@ WebView *MainView::newWebView(bool focused) connect(webView->page(), SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested())); connect(webView->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *))); - addTab(webView, i18n("(Untitled)")); + // opening tab NEAR the previous + insertTab(currentIndex() + 1, webView, i18n("(Untitled)")); if (focused) { |