fix byte range set check in SendAssetTask

This commit is contained in:
Stephen Birarda 2017-04-18 10:34:40 -07:00 committed by Atlante45
parent fab1bdaeb7
commit 06ce63f421

View file

@ -68,7 +68,7 @@ void SendAssetTask::run() {
QFile file { filePath };
if (file.open(QIODevice::ReadOnly)) {
if (byteRange.isSet()) {
if (!byteRange.isSet()) {
// if the byte range is not set, force it to be from 0 to the end of the file
byteRange.fromInclusive = 0;
byteRange.toExclusive = file.size();