]> git.lyx.org Git - features.git/commitdiff
Allow more time for latex... process launching can be slow on Windows...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 11 May 2009 11:58:28 +0000 (11:58 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 11 May 2009 11:58:28 +0000 (11:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29630 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp

index 1692b2ca1c8e88bf488872b7bff69622f27f25ad..bed1f45f500df712b5dd11e5eb17b563760c274d 100644 (file)
@@ -61,7 +61,7 @@ int Systemcall::startscript(Starttype how, string const & what)
        QString cmd = QString::fromLocal8Bit(what.c_str());
        QProcess * process = new QProcess;
        process->start(cmd);
-       if (!process->waitForStarted(1000)) {
+       if (!process->waitForStarted(3000)) {
                LYXERR0("Qprocess " << cmd << " did not start!");
                LYXERR0("error " << process->error());
                LYXERR0("state " << process->state());
@@ -71,7 +71,7 @@ int Systemcall::startscript(Starttype how, string const & what)
        if (how == DontWait)
                return 0;
 
-       if (!process->waitForFinished(30000)) {
+       if (!process->waitForFinished(180000)) {
                LYXERR0("Qprocess " << cmd << " did not finished!");
                LYXERR0("error " << process->error());
                LYXERR0("state " << process->state());