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, 9 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp
index a2d428d7..7fe23f20 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -150,9 +150,7 @@ int Application::newInstance()
}
kDebug() << "URL: " << u;
- WebTab *tab = newWebApp();
- connect(tab->page(), SIGNAL(pageCreated(WebPage*)), this, SLOT(pageCreated(WebPage*)));
- tab->view()->load(u);
+ loadUrl(u, Rekonq::WebApp);
if (isFirstLoad)
{
@@ -525,6 +523,14 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
return;
}
+ if (type == Rekonq::WebApp)
+ {
+ WebTab *tab = newWebApp();
+ connect(tab->page(), SIGNAL(pageCreated(WebPage*)), this, SLOT(pageCreated(WebPage*)));
+ tab->view()->load(url);
+ return;
+ }
+
Rekonq::OpenType newType = type;
// Don't open useless tabs or windows for actions in about: pages
if (url.url().contains("about:") && url.url().contains("/"))