From 11020c50f1e8bd71e7546c82d9ef7b2ec8ff4afb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Fri, 4 Dec 2009 13:28:30 +0000 Subject: [PATCH] add argument to suppress event processing git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/Systemcall.cpp | 3 +-- src/support/Systemcall.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.2