Fix auto-restart when a space is in the file path

This commit is contained in:
Jonathan White 2020-07-06 21:09:59 -04:00
parent 44f2d3a3c2
commit 13c86cbdc5
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -161,8 +161,7 @@ int main(int argc, char** argv)
// Check if restart was requested
if (exitCode == RESTART_EXITCODE) {
QProcess* proc = new QProcess();
proc->start(QCoreApplication::applicationFilePath());
QProcess::startDetached(QCoreApplication::applicationFilePath(), {});
}
#if defined(WITH_ASAN) && defined(WITH_LSAN)