Read payload size as qint64

This commit is contained in:
Nicolas Fella 2020-03-18 00:41:12 +01:00 committed by Aleix Pol Gonzalez
parent b75a74abcc
commit 2c8cf96a6c

View file

@ -132,7 +132,7 @@ bool NetworkPacket::unserialize(const QByteArray& a, NetworkPacket* np)
qvariant2qobject(variant, np);
if (np->m_payloadSize == -1) {
np->m_payloadSize = np->get<int>(QStringLiteral("size"), -1);
np->m_payloadSize = np->get<qint64>(QStringLiteral("size"), -1);
}
np->m_payloadTransferInfo = variant[QStringLiteral("payloadTransferInfo")].toMap(); //Will return an empty qvariantmap if was not present, which is ok