wasm: fix networkreply with empty data
Fixes: QTBUG-114078 Pick-to: 6.5 6.6 Change-Id: I78e6844ab1aa5d385d8c558c696299e7fa845f50 Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
This commit is contained in:
parent
fa256b242c
commit
103ffe1b58
@ -313,7 +313,7 @@ void QNetworkReplyWasmImplPrivate::emitDataReadProgress(qint64 bytesReceived, qi
|
||||
|
||||
totalDownloadSize = bytesTotal;
|
||||
|
||||
percentFinished = (bytesReceived / bytesTotal) * 100;
|
||||
percentFinished = bytesTotal ? (bytesReceived / bytesTotal) * 100 : 100;
|
||||
|
||||
emit q->downloadProgress(bytesReceived, bytesTotal);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user