summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-21 00:00:40 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-21 00:00:40 +0100
commit0099d93fea98863bed22cf52ef5f7c02c1f09d2b (patch)
treefe92142a6c77ab732ccda201795dacea464d1662 /src/webview.cpp
parentMerge commit 'refs/merge-requests/75' of git://gitorious.org/rekonq/mainline ... (diff)
parentdownload one link with org.kde.kget.main.addTransfer (diff)
downloadrekonq-0099d93fea98863bed22cf52ef5f7c02c1f09d2b.tar.xz
Merge commit 'refs/merge-requests/76' of git://gitorious.org/rekonq/mainline into m75
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index f766ab58..a6ebd08d 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -400,9 +400,10 @@ void WebView::downloadLinkWithKGet()
QDBusInterface kget("org.kde.kget", "/KGet", "org.kde.kget.main");
KAction *a = qobject_cast<KAction*>(sender());
- QList<QString> contentList;
- contentList.append(a->data().toUrl().toString());
- kget.call("importLinks", QVariant(contentList));
+ QString url = a->data().toUrl().toString(QUrl::RemoveFragment);
+ QString filename = QDir::homePath()+"/"+url.remove(0,url.lastIndexOf("/")+1);
+ kDebug() << filename;
+ kget.call("addTransfer", a->data().toUrl().toString(), filename, true);
}