[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:28 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=ee5bf89
The following commit has been merged in the master branch:
commit ee5bf89071797ecad71f7d9acdab7041bfa70358
Author: Àlex Fiestas <afiestas at kde.org>
Date: Mon Mar 3 21:08:34 2014 +0100
Fallback to body->size if payLoadsize is empty
For some reason body->size is exactly as big as the
payload I'm trying to send (using android app). This is
probably a bug in the Android app, I decided to commit
the workaround anyway so we keep compatibility with
current (and old) versions of the Android app.
CCMAIL: albertvaka at gmail.com
---
kded/networkpackage.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kded/networkpackage.cpp b/kded/networkpackage.cpp
index ef624aa..fa85008 100644
--- a/kded/networkpackage.cpp
+++ b/kded/networkpackage.cpp
@@ -112,6 +112,9 @@ bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np)
}
np->mPayloadSize = variant["payloadSize"].toInt(); //Will return 0 if was not present, which is ok
+ if (np->mPayloadSize == -1) {
+ np->mPayloadSize = np->get<int>("size", -1);
+ }
np->mPayloadTransferInfo = variant["payloadTransferInfo"].toMap(); //Will return an empty qvariantmap if was not present, which is ok
return true;
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list