]> git.lyx.org Git - lyx.git/commitdiff
add argument to suppress event processing
authorPeter Kümmel <syntheticpp@gmx.net>
Fri, 4 Dec 2009 13:28:30 +0000 (13:28 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Fri, 4 Dec 2009 13:28:30 +0000 (13:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp
src/support/Systemcall.h

index 5c612eee6720063e8826b84c72bc59a7ceafa5b8..69692aaa529f7e62fe31b794532f427c368084d3 100644 (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)) {
index 61ba092a2dde0a3c93296de11a6650569faea15c..39aeaad4bfaee21b64dbcf0d5626668539303243 100644 (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