Skip to content

Commit

Permalink
settings window: cleaner wizard launch
Browse files Browse the repository at this point in the history
  • Loading branch information
zomfg committed May 28, 2020
1 parent dacb08f commit b225cf3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Software/src/SettingsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b225cf3

Please sign in to comment.