diff options
Diffstat (limited to 'src/tabwindow/rekonqwindow.cpp')
-rw-r--r-- | src/tabwindow/rekonqwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabwindow/rekonqwindow.cpp b/src/tabwindow/rekonqwindow.cpp index 1717403c..ee37eba9 100644 --- a/src/tabwindow/rekonqwindow.cpp +++ b/src/tabwindow/rekonqwindow.cpp @@ -27,6 +27,7 @@ // Self Includes #include "rekonqwindow.h" #include "rekonqwindow.moc" +#include <rekonq.h> // KDE Includes #include <KApplication> @@ -379,6 +380,8 @@ int RekonqWindow::addTab(QWidget *page, const QIcon &icon, const QString &label) int RekonqWindow::insertTab(int index, QWidget *page, const QString &label) { + if (! ReKonfig::openNewTabsNextToCurrent()) + index = -1; setUpdatesEnabled(false); int i = KTabWidget::insertTab(index, page, label); setUpdatesEnabled(true); @@ -389,6 +392,8 @@ int RekonqWindow::insertTab(int index, QWidget *page, const QString &label) int RekonqWindow::insertTab(int index, QWidget *page, const QIcon &icon, const QString &label) { + if (! ReKonfig::openNewTabsNextToCurrent()) + index = -1; setUpdatesEnabled(false); int i = KTabWidget::insertTab(index, page, icon, label); setUpdatesEnabled(true); |