summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index b9af551d..b8db6825 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -274,10 +274,22 @@ void WebView::loadFinished()
}
+// FIXME: load http by default!!
void WebView::loadUrl(const KUrl &url)
{
m_initialUrl = url;
- load(url);
+
+ if( m_initialUrl.isRelative() )
+ {
+ kWarning() << "1: " << m_initialUrl.url();
+ QString fn = m_initialUrl.url( KUrl::RemoveTrailingSlash );
+ kWarning() << "2: " << fn;
+ m_initialUrl.setUrl( "//" + fn );
+ m_initialUrl.setScheme("http");
+ kWarning() << "3: " << m_initialUrl.url();
+ }
+
+ load(m_initialUrl);
}