From 16e86e98b996a7596d6e7fede4921febeda2acee Mon Sep 17 00:00:00 2001 From: Lindsay Mathieson Date: Thu, 24 Jan 2013 20:15:02 +1000 Subject: Added option for opening new tabs next to current (default to true). Otherwise tabs created at end of list. --- src/tabwindow/rekonqwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tabwindow') 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 // KDE Includes #include @@ -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); -- cgit v1.2.1