From 02c7190dd2dae6111f086dd8e4d2f4db1fdbbd06 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 21 Oct 2012 12:13:07 +0200 Subject: fix new tabs opening QUESTION: do we need an option to eventually re-activate old mode? --- src/tabwindow/tabwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index bfdc9bcd..d2692d3d 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -172,12 +172,14 @@ void TabWindow::loadUrl(const KUrl &url, Rekonq::OpenType type, TabHistory *hist case Rekonq::NewTab: case Rekonq::NewBackGroundTab: tab = prepareNewTab(); - addTab(tab, i18n("new tab")); + _openedTabsCounter++; + insertTab(currentIndex() + _openedTabsCounter, tab, i18n("new tab")); break; case Rekonq::NewFocusedTab: tab = prepareNewTab(); - addTab(tab, i18n("new tab")); + _openedTabsCounter++; + insertTab(currentIndex() + _openedTabsCounter, tab, i18n("new tab")); setCurrentWidget(tab); break; -- cgit v1.2.1