mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
eac9f84482
commit
11020c50f1
@ -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)) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user