mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
Stuff.
Took 11 minutes
This commit is contained in:
parent
7fa6de1bf2
commit
752468c2de
1 changed files with 3 additions and 2 deletions
|
|
@ -224,7 +224,8 @@ void DlgUpdate::downloadSuccessful(const QUrl &filepath)
|
|||
setLabel(tr("Installing..."));
|
||||
|
||||
const QString installer = filepath.toLocalFile();
|
||||
const QString args = QString("/R /D=\"%1\"").arg(QCoreApplication::applicationDirPath());
|
||||
const QString installDir = QDir::toNativeSeparators(QCoreApplication::applicationDirPath());
|
||||
const QString args = QString("/R /D=\"%1\"").arg(installDir);
|
||||
|
||||
bool launched = false;
|
||||
|
||||
|
|
@ -241,7 +242,7 @@ void DlgUpdate::downloadSuccessful(const QUrl &filepath)
|
|||
CloseHandle(sei.hProcess);
|
||||
}
|
||||
#else
|
||||
launched = QProcess::startDetached(installer, {"/R", QString("/D=%1").arg(QCoreApplication::applicationDirPath())});
|
||||
launched = QProcess::startDetached(installer, {"/R", QString("/D=%1").arg(installDir)});
|
||||
#endif
|
||||
|
||||
if (launched) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue