int Systemcall::startscript(Starttype how, string const & what,
string const & path, bool process_events)
{
- lyxerr << "\nRunning: " << what << endl;
+ LYXERR(Debug::INFO,"Running: " << what);
string infile;
string outfile;
string errfile;
- QString cmd = QString::fromLocal8Bit(
+ QString const cmd = QString::fromLocal8Bit(
parsecmd(what, infile, outfile, errfile).c_str());
SystemcallPrivate d(infile, outfile, errfile);
void SystemcallPrivate::processEvents()
{
- if(process_events_) {
+ if (process_events_) {
QCoreApplication::processEvents(/*QEventLoop::ExcludeUserInputEvents*/);
}
}
return state != Error;
}
- // process events while waiting whith timeout
+ // process events while waiting with timeout
QTime timer;
timer.start();
while (state == waitwhile && state != Error && !timedout) {