From 752468c2de02b0e81a181438a6b033d752b67dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Fri, 12 Jun 2026 10:42:07 +0200 Subject: [PATCH] Stuff. Took 11 minutes --- cockatrice/src/interface/widgets/dialogs/dlg_update.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp b/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp index 135ef7cd6..b761cb64d 100644 --- a/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp +++ b/cockatrice/src/interface/widgets/dialogs/dlg_update.cpp @@ -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) {