Fixes version check for serialized data.

Use new ::serialization package for save- and restore state.
This commit is contained in:
mfreiholz
2016-04-01 13:06:12 +02:00
parent 2a1bc4c43b
commit ac80242545
3 changed files with 289 additions and 243 deletions

View File

@@ -374,7 +374,7 @@ bool InMemoryReader::initReadHeader()
qWarning() << QString("invalid format (magic=%1)").arg(header.magic);
return false;
}
if (header.majorVersion > HeaderEntity::MAJOR_VERSION)
if (header.majorVersion != HeaderEntity::MAJOR_VERSION)
{
qWarning() << QString("format is too new (major=%1; minor=%2)")
.arg(header.majorVersion).arg(header.minorVersion);