mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 13:24:05 +00:00
Revert "fix possible crash in archlinux"
This reverts commit9719091776
. Revert "fix crash on archlinux" This reverts commit0dc2b4d416
.
This commit is contained in:
parent
35141a5334
commit
e66380763f
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue