diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2009-12-18 20:46:52 +0100 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2009-12-18 20:46:52 +0100 |
commit | 38e99ee34870baa7b866348cb340ef9e9edc422e (patch) | |
tree | ab3151429149383544593afaa2d42caf812fed0d /src/webview.cpp | |
parent | first kget integration (diff) | |
download | rekonq-38e99ee34870baa7b866348cb340ef9e9edc422e.tar.xz |
download one link with org.kde.kget.main.addTransfer
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 7 |
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); } |