From 1845346fbe63d0dc67b1ce11499f3ec77ddda44f Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 15 Nov 2009 12:19:25 +0100 Subject: Fixing "open in ne window" slot --- src/application.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index 0dfc478f..66a7d3e5 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -154,7 +154,7 @@ int Application::newInstance() // No windows in the current desktop? No windows at all? // Create a new one and load there sites... - loadUrl(args->arg(0), Rekonq::NewWindow); + loadUrl(args->arg(0), Rekonq::CurrentTab); for (int i = 1; i < args->count(); ++i) loadUrl(args->arg(i), Rekonq::SettingOpenTab); @@ -354,7 +354,11 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) // first, create the webview(s) to not let hangs UI.. WebView *webView = 0; - MainWindow *w = mainWindow(); + MainWindow *w = 0; + if(type == Rekonq::NewWindow) + w = newMainWindow(); + else + w = mainWindow(); switch(type) { -- cgit v1.2.1