summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-19 12:37:46 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-19 12:37:46 +0100
commit060909220bad6842828f2583213dc96c285b5fd9 (patch)
treeff6d855a17aff7ac26b31e48b1adbd69142e3178 /src/protocolhandler.cpp
parentSave memory. (diff)
downloadrekonq-060909220bad6842828f2583213dc96c285b5fd9.tar.xz
change setHtml( string ) to setHtml( string, url ) to let webviews
return an url on webview->url() calls
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index a80f0a46..1a533a6e 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -110,7 +110,7 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
{
if( _url == KUrl("about:blank") )
{
- frame->setHtml( QString() );
+ frame->setHtml( QString() , _url );
return true;
}
@@ -288,7 +288,7 @@ void ProtocolHandler::showResults(const KFileItemList &list)
}
QString html = dirHandling(list);
- _frame->setHtml(html);
+ _frame->setHtml( html, _url );
Application::instance()->mainWindow()->currentTab()->setFocus();
Application::instance()->mainWindow()->mainView()->urlBar()->setUrl(_url);