summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index adfeab97..c7202fd8 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -30,13 +30,11 @@
#include "mainwindow.h"
#include "mainview.h"
#include "cookiejar.h"
-#include "downloadmanager.h"
#include "networkaccessmanager.h"
// KDE Includes
#include <KStandardDirs>
#include <KDebug>
-#include <kio/netaccess.h>
// Qt Includes
#include <QClipboard>
@@ -126,7 +124,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
{
if (reply->error() == QNetworkReply::NoError)
{
- BrowserApplication::downloadManager()->handleUnsupportedContent(reply);
+ BrowserApplication::instance()->downloadUrl( reply->url() );
return;
}
@@ -305,12 +303,9 @@ void WebView::setStatusBarText(const QString &string)
}
-// FIXME: use KIO transfer job instead!!
void WebView::downloadRequested(const QNetworkRequest &request)
{
- const KUrl url = KUrl( request.url() );
- QString path = ReKonfig::downloadDir() + QString("/") + url.fileName();
- KIO::NetAccess::download( url , path , this );
+ BrowserApplication::instance()->downloadUrl( request.url() );
}