Version 1.1.16: Add some debug info.

This commit is contained in:
John Preston 2017-07-26 17:56:01 +03:00
parent c681f75ad3
commit 0e059ec788
1 changed files with 3 additions and 0 deletions

View File

@ -690,7 +690,10 @@ void mtpFileLoader::partLoaded(int offset, base::const_byte_span bytes) {
return cancel(true);
}
} else {
SignalHandlers::setCrashAnnotation("DebugInfo", QString("offset: %1, size: %2").arg(offset).arg(bytes.size()));
_data.reserve(offset + bytes.size());
SignalHandlers::setCrashAnnotation("DebugInfo", QString());
if (offset > _data.size()) {
_skippedBytes += offset - _data.size();
_data.resize(offset);