summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2012-01-13 01:09:51 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-13 01:09:51 +0100
commitb4b2423558a0131f6684578b47907f0e7c3a6a71 (patch)
tree787b3a2ed6fc963bc790a52f87eda8ee79c8fc2a
parentIt seems I accidentally changed default settings for (diff)
downloadrekonq-b4b2423558a0131f6684578b47907f0e7c3a6a71.tar.xz
Open blank new tab at the end also when "open tabs neat current active
one" option is active REVIEW:103678 REVIEWED-BY: adjam
-rw-r--r--src/mainview.cpp5
1 files changed, 4 insertions, 1 deletions
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());