summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index a386eba4..4a9ba8c5 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -364,7 +364,13 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
switch (type)
{
case Rekonq::NewTab:
- tab = w->mainView()->newWebTab(!ReKonfig::openTabsBack(), ReKonfig::openTabsNearCurrent());
+ if( ReKonfig::openTabNoWindow() )
+ tab = w->mainView()->newWebTab(!ReKonfig::openTabsBack(), ReKonfig::openTabsNearCurrent());
+ else
+ {
+ w = newMainWindow();
+ tab = w->mainView()->currentWebTab();
+ }
break;
case Rekonq::NewFocusedTab:
tab = w->mainView()->newWebTab(true);