Skip to content

Commit

Permalink
In case of empty checksum type, emit validated.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragotin committed May 21, 2015
1 parent 4e28a24 commit b05ca52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libsync/transmissionchecksumvalidator.cpp
Expand Up @@ -100,7 +100,10 @@ void TransmissionChecksumValidator::downloadValidation( const QByteArray& checks
{
// if the incoming header is empty, there was no checksum header, and
// no validation can happen. Just continue.
if( checksumHeader.isEmpty() ) {
const QString csType = checksumType();

// for empty checksum type, everything is valid.
if( csType.isEmpty() ) {
emit validated();
return;
}
Expand Down

0 comments on commit b05ca52

Please sign in to comment.