diff --git a/kded/networkpackage.cpp b/kded/networkpackage.cpp index ef624aaa8..fa850086f 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("size", -1); + } np->mPayloadTransferInfo = variant["payloadTransferInfo"].toMap(); //Will return an empty qvariantmap if was not present, which is ok return true;