[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:29:05 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=9fedfcd

The following commit has been merged in the master branch:
commit 9fedfcdb3d216ef4547bd4ebfd7661a01e177e13
Author: Aleix Pol <aleixpol at kde.org>
Date:   Fri Sep 11 17:03:11 2015 +0200

    Notify QNAM about the file received size
---
 core/filetransferjob.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp
index 86ef799..46c84e2 100644
--- a/core/filetransferjob.cpp
+++ b/core/filetransferjob.cpp
@@ -82,7 +82,10 @@ void FileTransferJob::startTransfer()
                         mDeviceName),
                         QPair<QString, QString>(i18nc("File transfer destination", "To"), mDestination.toLocalFile()));
 
-    mReply = Daemon::instance()->networkAccessManager()->put(QNetworkRequest(mDestination), mOrigin.data());
+    QNetworkRequest req(mDestination);
+    req.setHeader(QNetworkRequest::ContentLengthHeader, totalAmount(Bytes));
+    mReply = Daemon::instance()->networkAccessManager()->put(req, mOrigin.data());
+
     connect(mReply, &QNetworkReply::uploadProgress, this, [this](qint64 bytesSent, qint64 /*bytesTotal*/) {
         setProcessedAmount(Bytes, bytesSent);
         emitSpeed(bytesSent/mTime.elapsed());

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list