summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 44b0142e..3a0b1606 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -310,7 +310,16 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
}
WebView *webView = 0;
- MainWindow *w = mainWindow();
+ MainWindow *w = 0;
+
+ if(type == Rekonq::NewWindow)
+ {
+ w = newMainWindow();
+ }
+ else
+ {
+ w = mainWindow();
+ }
switch(type)
{
@@ -328,6 +337,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
case Rekonq::NewBackTab:
webView = w->mainView()->newWebView(false);
break;
+ case Rekonq::NewWindow:
case Rekonq::CurrentTab:
webView = w->mainView()->currentWebView();
w->mainView()->urlBar()->setUrl(loadingUrl.prettyUrl());