diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-16 16:42:14 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-16 16:42:14 +0100 |
commit | 1f9c6c5e02f2b3689195bd3523d8378c4e9153bd (patch) | |
tree | 1ef88b15bbcba32e9bbe6644660a62a1a3f58464 /src | |
parent | updated rekonq site (diff) | |
download | rekonq-1f9c6c5e02f2b3689195bd3523d8378c4e9153bd.tar.xz |
Fixing No Scheme Loading Url. Try 1..
Diffstat (limited to 'src')
-rw-r--r-- | src/webview.cpp | 14 |
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); } |