From e1791ac7190b8fc570c7097f48d2ad2b5cd29ee1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 14 Sep 2009 18:33:32 +0200 Subject: Open new tab near previous --- src/mainview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.1