From 84c7c40e8632f31385d3e24dd56408fb25bdb461 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sun, 25 Aug 2019 21:26:14 +0200 Subject: [PATCH] added some flush() calls just to be sure --- src/singletons/Updates.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/singletons/Updates.cpp b/src/singletons/Updates.cpp index 55fa3dace..5930c59c1 100644 --- a/src/singletons/Updates.cpp +++ b/src/singletons/Updates.cpp @@ -102,6 +102,8 @@ void Updates::installUpdates() this->setStatus_(WriteFileFailed); return Failure; } + file.flush(); + file.close(); QProcess::startDetached( combinePath(QCoreApplication::applicationDirPath(), @@ -160,6 +162,7 @@ void Updates::installUpdates() QDesktopServices::openUrl(this->updateExe_); return Failure; } + file.flush(); file.close(); if (QProcess::startDetached(filename))