mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 17:04:41 -04:00
Increased NetworkMessage schema number and Qt serialization format
The Qt_5_0 QDataStream serialization format is buggy, moved to the Qt_5_2 format. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5231 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+5
-1
@@ -25,7 +25,7 @@ namespace NetworkMessage
|
||||
{
|
||||
*this << magic;
|
||||
*this << schema_number;
|
||||
setVersion (QDataStream::Qt_5_0); // Qt schema version
|
||||
setVersion (QDataStream::Qt_5_2); // Qt schema version
|
||||
*this << static_cast<quint32> (type) << id.toUtf8 ();
|
||||
}
|
||||
|
||||
@@ -49,6 +49,10 @@ namespace NetworkMessage
|
||||
{
|
||||
parent->setVersion (QDataStream::Qt_5_0);
|
||||
}
|
||||
else if (schema_ <= 2)
|
||||
{
|
||||
parent->setVersion (QDataStream::Qt_5_2);
|
||||
}
|
||||
quint32 type;
|
||||
*parent >> type >> id_;
|
||||
if (type >= maximum_message_type_)
|
||||
|
||||
Reference in New Issue
Block a user