From 20bb3a65bb4aa199a22f126266af836c4e2ec592 Mon Sep 17 00:00:00 2001 From: Dimitrios Christidis Date: Sun, 10 Feb 2013 13:01:47 +0200 Subject: Open new tabs in the foreground. Adds a new configuration option (disabled by default) to open links in new tabs in the foreground. BUG: 313794 REVIEW: 108801 Signed-off-by: Andrea Diamantini --- src/tabwindow/tabwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/tabwindow') diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index d0e6dbce..3910467b 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -266,6 +266,14 @@ void TabWindow::loadUrl(const KUrl &url, Rekonq::OpenType type, TabHistory *hist switch (type) { case Rekonq::NewTab: + tab = prepareNewTab(); + _openedTabsCounter++; + insertTab(currentIndex() + _openedTabsCounter, tab, i18n("new tab")); + if (ReKonfig::openNewTabsInForeground()) + { + setCurrentWidget(tab); + } + break; case Rekonq::NewBackGroundTab: tab = prepareNewTab(); _openedTabsCounter++; -- cgit v1.2.1