mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
In case of empty checksum type, emit validated.
This commit is contained in:
parent
4e28a24af3
commit
b05ca526a4
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user