Fix migrating from legacy lang storage.

This commit is contained in:
John Preston 2018-11-14 11:53:32 +04:00
parent a6de296703
commit fb8eafab81
1 changed files with 4 additions and 1 deletions

View File

@ -504,8 +504,11 @@ void Instance::fillFromSerialized(
}
if (!stream.atEnd()) {
stream >> base;
if (base.isEmpty()) {
stream.setStatus(QDataStream::ReadCorruptData);
}
}
if (stream.status() != QDataStream::Ok || base.isEmpty()) {
if (stream.status() != QDataStream::Ok) {
LOG(("Lang Error: "
"Could not read data from serialized langpack."));
return;