mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
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:
parent
413fe5bccc
commit
2b2e0e8a12
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user