mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix migrating from legacy lang storage.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user