diff options
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 6 |
1 files 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; |