summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-04-07 17:42:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-04-07 17:42:38 +0200
commitde678704a0b62e2d6ddf6968f78c145b8e00b749 (patch)
tree56553dc088800f13c086e230737f11a70a74cab7 /src/application.cpp
parentAdd bool info in WebTab about being a web app (diff)
downloadrekonq-de678704a0b62e2d6ddf6968f78c145b8e00b749.tar.xz
Clean up url loading
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 3a76a6de..172a0e22 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -565,6 +565,11 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
else
{
w = rekonqWindow();
+ if (!w)
+ {
+ w = newWindow();
+ newType = Rekonq::CurrentTab;
+ }
}
w->loadUrl(url, newType);