diff options
author | Furkan Uzumcu <furkanuzumcu@gmail.com> | 2012-01-13 01:09:51 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-13 01:09:51 +0100 |
commit | b4b2423558a0131f6684578b47907f0e7c3a6a71 (patch) | |
tree | 787b3a2ed6fc963bc790a52f87eda8ee79c8fc2a /src/mainview.cpp | |
parent | It seems I accidentally changed default settings for (diff) | |
download | rekonq-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
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 5 |
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()); |