From e5360e6ae9b0601279761983637c8649f8503f0c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 13 Feb 2010 01:37:29 +0100 Subject: Fixing download code && (hopefully) issues --- src/webpage.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/webpage.cpp b/src/webpage.cpp index 9805a3d5..a0a4fe21 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -162,7 +162,9 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) if( offer.isNull() ) // no service can handle this. We can just download it.. { - isLocal ? KMessageBox::sorry(view(), i18n("No service can handle this :(") ) : downloadRequest(reply->request()); + isLocal + ? KMessageBox::sorry(view(), i18n("No service can handle this :(") ) + : downloadRequest( reply->request() ); return; } @@ -173,7 +175,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) switch ( dlg.askEmbedOrSave() ) { case KParts::BrowserOpenOrSaveQuestion::Save: - downloadRequested(reply->request()); + downloadRequest( reply->request() ); return; case KParts::BrowserOpenOrSaveQuestion::Cancel: return; @@ -320,8 +322,11 @@ void WebPage::downloadRequest(const QNetworkRequest &request) QDBusInterface kget("org.kde.kget", "/KGet", "org.kde.kget.main"); kget.call("addTransfer", srcUrl.prettyUrl(), destUrl.prettyUrl(), true); } + + return; } - else KWebPage::downloadRequest(request); + + KWebPage::downloadRequest(request); } -- cgit v1.2.1