summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
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);
}