Revert "fix possible crash in archlinux"

This reverts commit 9719091776.

Revert "fix crash on archlinux"

This reverts commit 0dc2b4d416.
This commit is contained in:
xiaoyifang 2022-11-01 17:40:20 +08:00
parent 35141a5334
commit e66380763f

View file

@ -2078,7 +2078,7 @@ void ArticleView::resourceDownloadFinished()
{ {
if ( (*i)->isFinished() ) if ( (*i)->isFinished() )
{ {
if ( (*i)->dataSize() > 0 ) if ( (*i)->dataSize() >= 0 )
{ {
// Ok, got one finished, all others are irrelevant now // Ok, got one finished, all others are irrelevant now
@ -2759,7 +2759,7 @@ void ResourceToSaveHandler::downloadFinished()
{ {
if ( (*i)->isFinished() ) if ( (*i)->isFinished() )
{ {
if ( (*i)->dataSize() > 0 && !alreadyDone ) if ( (*i)->dataSize() >= 0 && !alreadyDone )
{ {
QByteArray resourceData; QByteArray resourceData;
vector< char > const & data = (*i)->getFullData(); vector< char > const & data = (*i)->getFullData();