Issue #69 Menu item to launch CSL2XSB in own models component

This commit is contained in:
Mat Sutcliffe
2020-08-09 01:46:16 +01:00
parent 19e409a451
commit 660f3fc17b
3 changed files with 35 additions and 4 deletions

View File

@@ -33,10 +33,11 @@ namespace BlackMisc
memset (&startupInfo, 0, sizeof (startupInfo));
startupInfo.cb = sizeof (startupInfo);
QString command;
command += program;
command += ' ';
command += arguments.join(' ').replace('/', '\\');
QString command = '"' % QString(program).replace('/', '\\') % '"';
if (!arguments.isEmpty())
{
command += " \"" % arguments.join('" "').replace('/', '\\') % '"';
}
DWORD flags = 0;
flags |= NORMAL_PRIORITY_CLASS;