summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-14 18:33:32 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-14 18:33:32 +0200
commite1791ac7190b8fc570c7097f48d2ad2b5cd29ee1 (patch)
treea87442810437719a3b99b60649972f7e57ed93a3 /src/mainview.cpp
parentBugfix: when trying to open link in new tab & network request fails (no (diff)
downloadrekonq-e1791ac7190b8fc570c7097f48d2ad2b5cd29ee1.tar.xz
Open new tab near previous
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp3
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)
{