summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
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;