fix crash on archlinux

I guess the issue #173 may be  rooted in here
This commit is contained in:
Xiao YiFang 2022-10-22 19:27:32 +08:00
parent 7adfc523a2
commit 0dc2b4d416

View file

@ -2078,7 +2078,7 @@ void ArticleView::resourceDownloadFinished()
{
if ( (*i)->isFinished() )
{
if ( (*i)->dataSize() >= 0 )
if ( (*i)->dataSize() > 0 )
{
// Ok, got one finished, all others are irrelevant now