summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-07-27 19:43:18 +0200
committermegabigbug <megabigbug@arrakis.(none)>2009-07-27 19:43:18 +0200
commiteb86af98a8eaa8bdaecfe19eed14f531ff27e0a1 (patch)
tree44597241b7127e1b6c668b9f8c7aa7e347ccbb48 /src/application.cpp
parentcopy paste from khtml_ext.cpp: (diff)
downloadrekonq-eb86af98a8eaa8bdaecfe19eed14f531ff27e0a1.tar.xz
Fix // bug
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 4213e276..c49892b7 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -268,13 +268,14 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
if (loadingUrl.isRelative())
{
QString fn = loadingUrl.url(KUrl::RemoveTrailingSlash);
- loadingUrl.setUrl("//" + fn);
if(loadingUrl.path().contains('.'))
{
+ loadingUrl.setUrl("//" + fn);
loadingUrl.setScheme("http");
}
else
{
+ loadingUrl.setUrl(fn);
loadingUrl.setScheme("gg");
}
}