From b225cf385b1bd5ce4a1fffeac8a9aecef330d608 Mon Sep 17 00:00:00 2001 From: zomfg Date: Thu, 28 May 2020 19:00:29 +0200 Subject: [PATCH] settings window: cleaner wizard launch --- Software/src/SettingsWindow.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Software/src/SettingsWindow.cpp b/Software/src/SettingsWindow.cpp index 6c5ae2d7e..9d4ee42f3 100644 --- a/Software/src/SettingsWindow.cpp +++ b/Software/src/SettingsWindow.cpp @@ -2250,15 +2250,12 @@ QString SettingsWindow::getPluginName(const Plugin *plugin) const void SettingsWindow::on_pbRunConfigurationWizard_clicked() { const QStringList args("--wizard"); + QString cmdLine(QApplication::applicationFilePath()); #ifdef Q_OS_WIN - QString cmdLine; - cmdLine.append("\""); - cmdLine.append(QApplication::applicationFilePath()); - cmdLine.append("\""); - QProcess::startDetached(cmdLine, args); -#else - QProcess::startDetached(QApplication::applicationFilePath(), args); + cmdLine.prepend('"'); + cmdLine.append('"'); #endif + QProcess::startDetached(cmdLine, args); quit(); }