diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-15 12:19:25 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-15 12:19:25 +0100 |
commit | 1845346fbe63d0dc67b1ce11499f3ec77ddda44f (patch) | |
tree | b4c56715ce4752c3f3be5e6270d31caaf2a53173 /src | |
parent | Finally remembered to fix urlbar (diff) | |
download | rekonq-1845346fbe63d0dc67b1ce11499f3ec77ddda44f.tar.xz |
Fixing "open in ne window" slot
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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) { |