1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Don't try to update without the updater binary

This commit is contained in:
tux3 2015-12-12 00:14:32 +01:00
parent 1f88312a01
commit 9408219443
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -86,6 +86,9 @@ bool AutoUpdater::isUpdateAvailable()
if (isDownloadingUpdate)
return false;
if (!QFile::exists(updaterBin))
return false;
QByteArray updateFlist = getUpdateFlist();
QList<UpdateFileMeta> diff = genUpdateDiff(parseFlist(updateFlist));
return !diff.isEmpty();