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

fix: Autoupdater trying to open files twice could fail

This commit is contained in:
tux3 2017-02-17 17:44:54 +01:00
parent b771f87e0b
commit 20ff68c3a6
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -478,10 +478,10 @@ bool AutoUpdater::downloadUpdate()
if (fileFile.open(QIODevice::ReadOnly) && fileFile.size() == (qint64)fileMeta.size) if (fileFile.open(QIODevice::ReadOnly) && fileFile.size() == (qint64)fileMeta.size)
{ {
qDebug() << "Skipping already downloaded file '" + fileMeta.installpath+ "'"; qDebug() << "Skipping already downloaded file '" + fileMeta.installpath+ "'";
fileFile.close();
progressValue = initialProgress + step; progressValue = initialProgress + step;
continue; continue;
} }
fileFile.close();
qDebug() << "Downloading '" + fileMeta.installpath + "' ..."; qDebug() << "Downloading '" + fileMeta.installpath + "' ...";