Patch from Peter.

Commit the patch posted at beginning of this thread and see how big the problems are, especially Pavel's svn code.

After solving the problems, I planned to integrate my previous GUI patches.

see:
http://marc.info/?l=lyx-devel&m=124136994215110&w=2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29614 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-05-10 19:39:56 +00:00
parent 413fe5bccc
commit 2b2e0e8a12

View File

@ -18,6 +18,8 @@
#include <cstdlib>
#include <QProcess>
using namespace std;
namespace lyx {
@ -39,6 +41,15 @@ int Systemcall::startscript(Starttype how, string const & what)
}
}
//#define DISABLE_EVALUATE_QPROCESS
#ifndef DISABLE_EVALUATE_QPROCESS
QString cmd = QString::fromLocal8Bit(command.c_str());
QProcess process;
process.start(cmd);
process.waitForFinished();
return process.exitCode();
#endif
return ::system(command.c_str());
}