MSI: Fix crash in the auto updater

'auto' here is a QStringBuilder referencing a temporary

Ammend commit 150d4f5935
(MSI: Always with logfile #6609)

Found in the crash reporter:
https://sentry.io/owncloud/desktop-win-and-mac/issues/623245771/
This commit is contained in:
Olivier Goffart 2018-08-07 09:50:55 +02:00 committed by Camila (Rebase PR Action)
parent 5e518419de
commit e93972824d

View file

@ -208,7 +208,7 @@ void OCUpdater::slotStartInstaller()
return QDir::toNativeSeparators(path); return QDir::toNativeSeparators(path);
}; };
auto msiLogFile = cfg.configPath() + "msi.log"; QString msiLogFile = cfg.configPath() + "msi.log";
QString command = QString("&{msiexec /norestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}") QString command = QString("&{msiexec /norestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}")
.arg(preparePathForPowershell(updateFile)) .arg(preparePathForPowershell(updateFile))
.arg(preparePathForPowershell(msiLogFile)) .arg(preparePathForPowershell(msiLogFile))