diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-04 00:48:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-04 00:48:41 +0200 |
commit | 1e32755e0c8caa5be6c12dd6675a477e5dae9155 (patch) | |
tree | 561740ef6654371d458d8a6140e6975b11d521c6 /src/application.cpp | |
parent | Improving Multi Windows implementation (diff) | |
download | rekonq-1e32755e0c8caa5be6c12dd6675a477e5dae9155.tar.xz |
Open in new Window Action
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 12 |
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()); |