From b4b2423558a0131f6684578b47907f0e7c3a6a71 Mon Sep 17 00:00:00 2001 From: Furkan Uzumcu Date: Fri, 13 Jan 2012 01:09:51 +0100 Subject: Open blank new tab at the end also when "open tabs neat current active one" option is active REVIEW:103678 REVIEWED-BY: adjam --- src/mainview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainview.cpp b/src/mainview.cpp index 62851590..17cdd884 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -306,7 +306,10 @@ WebTab *MainView::newWebTab(bool focused) connect(tab->page(), SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested())); connect(tab->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *))); - if (ReKonfig::openNewTabsNearCurrent()) + bool openNearCurrent = true; + if (sender()) + openNearCurrent = sender()->objectName() != "new_tab" ? true : false; + if (ReKonfig::openNewTabsNearCurrent() && openNearCurrent) { insertTab(currentIndex() + 1, tab, i18n("(Untitled)")); m_widgetBar->insertWidget(currentIndex() + 1, tab->urlBar()); -- cgit v1.2.1