mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix possible crash in archlinux
This commit is contained in:
parent
6d8779442c
commit
9719091776
|
@ -2759,7 +2759,7 @@ void ResourceToSaveHandler::downloadFinished()
|
|||
{
|
||||
if ( (*i)->isFinished() )
|
||||
{
|
||||
if ( (*i)->dataSize() >= 0 && !alreadyDone )
|
||||
if ( (*i)->dataSize() > 0 && !alreadyDone )
|
||||
{
|
||||
QByteArray resourceData;
|
||||
vector< char > const & data = (*i)->getFullData();
|
||||
|
|
Loading…
Reference in a new issue