Revert "In case of empty checksum type, emit validated."
authorChristian Kamm <mail@ckamm.de>
Wed, 14 Oct 2015 11:41:51 +0000 (13:41 +0200)
committerChristian Kamm <mail@ckamm.de>
Wed, 28 Oct 2015 08:56:39 +0000 (09:56 +0100)
This reverts commit b05ca526a46c8a306ccfb4aca0d5cf94881ba14f.

The checksum type setting should not matter for downloads.

src/libsync/transmissionchecksumvalidator.cpp

index 97e5915b3c9d570aa338c3e49e1d972ce89cc19a..43b0518796d739f00618a252c3d26bbf843c577a 100644 (file)
@@ -94,10 +94,7 @@ void TransmissionChecksumValidator::downloadValidation( const QByteArray& checks
 {
     // if the incoming header is empty, there was no checksum header, and
     // no validation can happen. Just continue.
-    const QString csType = checksumType();
-
-    // for empty checksum type, everything is valid.
-    if( csType.isEmpty() ) {
+    if( checksumHeader.isEmpty() ) {
         emit validated(QByteArray());
         return;
     }