Browse Source

fix: Autoupdater trying to open files twice could fail

reviewable/pr4185/r1
tux3 9 years ago
parent
commit
20ff68c3a6
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 2
      src/net/autoupdate.cpp

2
src/net/autoupdate.cpp

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

Loading…
Cancel
Save