add argument to suppress event processing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2009-12-04 13:28:30 +00:00
parent eac9f84482
commit 11020c50f1
2 changed files with 2 additions and 3 deletions

View File

@ -99,13 +99,12 @@ string const parsecmd(string const & cmd, string & outfile)
int Systemcall::startscript(Starttype how, string const & what)
int Systemcall::startscript(Starttype how, string const & what, bool process_events)
{
string outfile;
QString cmd = toqstr(parsecmd(what, outfile));
SystemcallPrivate d(outfile);
bool process_events = true;
d.startProcess(cmd);
if (!d.waitWhile(SystemcallPrivate::Starting, process_events, 3000)) {

View File

@ -42,7 +42,7 @@ public:
* The string "what" contains a commandline with arguments separated
* by spaces.
*/
int startscript(Starttype how, std::string const & what);
int startscript(Starttype how, std::string const & what, bool process_events = true);
};
} // namespace support