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:
parent
b771f87e0b
commit
20ff68c3a6
|
@ -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 + "' ...";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user