mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +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)->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