Closed GoogleCodeExporter closed 9 years ago
Slight modification required...
int ele = 0;
if (args.size()>0)
argList.insert(0,QString());
for (int i = 0; i < args.size(); ++i)
wrapping the if around insert:
//processDebug->start("\""+executableName+"\"", QStringList() <<
m_parameters.arguments);
// Graeme: Parameters need to be properly parsed
QStringList argList = QStringList();
QString args = m_parameters.arguments;
bool openBracket = false;
int ele = 0;
if (args.size()>0)
argList.insert(0,QString());
for (int i = 0; i < args.size(); ++i)
{
if (args.at(i) == '"')
openBracket = !openBracket;
if (!openBracket && args.at(i).isSpace())
{
if (!argList.last().isEmpty())
{
argList.insert(++ele, QString()); // move to the next element in the list
}
continue; // avoid adding the spaces in the list
}
argList[ele].append(args.at(i));
}
processDebug->start(executableName, argList);
// Graeme: End parameters have now been parsed
processDebug->waitForFinished(500); // On attend un peu pour passer en �at Running
Original comment by foster.g...@gmail.com
on 12 Jul 2008 at 2:20
Fixed in r366
Original comment by Lord.Div...@gmail.com
on 30 Jan 2009 at 8:43
Original issue reported on code.google.com by
foster.g...@gmail.com
on 30 Jun 2008 at 11:27