summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-21 11:27:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-21 11:27:17 +0200
commit8eac211c434358cbe536eb6f1448f1d565a5f26f (patch)
tree379776ba033cbf868d8a66d80b20359d9c19fb4c /src/webview.cpp
parentSimpler MessageBoxs handling.. (diff)
downloadrekonq-8eac211c434358cbe536eb6f1448f1d565a5f26f.tar.xz
Moving new download system to mainline.
I did some changes to fit things as simple as possible. We can obviously improve things in a second moment..
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 004a4642..91a5b988 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -194,7 +194,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
KUrl srcUrl = reply->url();
QString path = ReKonfig::downloadDir() + QString("/") + srcUrl.fileName();
KUrl destUrl = KUrl(path);
- Application::instance()->downloadUrl(srcUrl, destUrl);
+ Application::downloadManager()->newDownload(srcUrl);
return;
}
@@ -387,7 +387,7 @@ void WebView::downloadRequested(const QNetworkRequest &request)
KUrl srcUrl = request.url();
QString path = ReKonfig::downloadDir() + QString("/") + srcUrl.fileName();
KUrl destUrl = KUrl(path);
- Application::instance()->downloadUrl(srcUrl, destUrl);
+ Application::downloadManager()->newDownload(srcUrl);
}