diff --git a/src/imagewriter.cpp b/src/imagewriter.cpp index 37e024b..c598d84 100644 --- a/src/imagewriter.cpp +++ b/src/imagewriter.cpp @@ -277,7 +277,7 @@ void ImageWriter::startWrite() { _thread = new LocalFileExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this); } - else if (compressed) + else { _thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this); if (_repo.toString() == OSLIST_URL) @@ -287,11 +287,6 @@ void ImageWriter::startWrite() tele->start(); } } - else - { - _thread = new DownloadThread(urlstr, _dst.toLatin1(), _expectedHash, this); - _thread->setInputBufferSize(IMAGEWRITER_UNCOMPRESSED_BLOCKSIZE); - } connect(_thread, SIGNAL(success()), SLOT(onSuccess())); connect(_thread, SIGNAL(error(QString)), SLOT(onError(QString)));