From: Peter Kümmel Date: Fri, 4 Dec 2009 13:28:30 +0000 (+0000) Subject: add argument to suppress event processing X-Git-Tag: 2.0.0~4915 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=11020c50f1e8bd71e7546c82d9ef7b2ec8ff4afb;p=features.git add argument to suppress event processing git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index 5c612eee67..69692aaa52 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -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)) { diff --git a/src/support/Systemcall.h b/src/support/Systemcall.h index 61ba092a2d..39aeaad4bf 100644 --- a/src/support/Systemcall.h +++ b/src/support/Systemcall.h @@ -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