diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-21 11:27:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-21 11:27:17 +0200 |
commit | 8eac211c434358cbe536eb6f1448f1d565a5f26f (patch) | |
tree | 379776ba033cbf868d8a66d80b20359d9c19fb4c /src/webview.cpp | |
parent | Simpler MessageBoxs handling.. (diff) | |
download | rekonq-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.cpp | 4 |
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); } |