summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-21 12:13:07 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit02c7190dd2dae6111f086dd8e4d2f4db1fdbbd06 (patch)
treebf66ab13027f31a379cd120f1f85f36ae9a6866c /src/tabwindow/tabwindow.cpp
parentFix new page creation on blank target url click (diff)
downloadrekonq-02c7190dd2dae6111f086dd8e4d2f4db1fdbbd06.tar.xz
fix new tabs opening
QUESTION: do we need an option to eventually re-activate old mode?
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r--src/tabwindow/tabwindow.cpp6
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;