summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-11-25 12:43:40 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:06 +0100
commitc0f258a52dfcce0812fe7bf2c5d054afdb7a8d3b (patch)
treef1b4008339a05dd66477a4e920ddfb8897e1866d /src/application.cpp
parentImprove suggestions, step 2 (diff)
downloadrekonq-c0f258a52dfcce0812fe7bf2c5d054afdb7a8d3b.tar.xz
re-enable the (useful) "open link in new tab" action in web app mode
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 13cbc174..92444625 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -388,7 +388,8 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
newType = Rekonq::CurrentTab;
}
else if (newType == Rekonq::NewWindow
- || (newType == Rekonq::NewTab && ReKonfig::openLinksInNewWindow()))
+ || (newType == Rekonq::NewTab && ReKonfig::openLinksInNewWindow())
+ || (newType == Rekonq::NewTab && tabWindowList().count() == 0))
{
w = newTabWindow();
newType = Rekonq::CurrentTab;