summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-13 01:37:29 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-13 01:37:29 +0100
commite5360e6ae9b0601279761983637c8649f8503f0c (patch)
treed9ab0b2f593bdddfcc9cb1381f75a77044f96152 /src
parentHonor settings when Opening new link after the current focused page (diff)
downloadrekonq-e5360e6ae9b0601279761983637c8649f8503f0c.tar.xz
Fixing download code && (hopefully) issues
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp11
1 files changed, 8 insertions, 3 deletions
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);
}