diff options
| -rw-r--r-- | automoc/kde4automoc.cpp | 25 | 
1 files changed, 15 insertions, 10 deletions
| diff --git a/automoc/kde4automoc.cpp b/automoc/kde4automoc.cpp index 5d0a9a03..9b3ea048 100644 --- a/automoc/kde4automoc.cpp +++ b/automoc/kde4automoc.cpp @@ -258,16 +258,21 @@ void AutoMoc::waitForProcesses()  {      while (!processes.isEmpty()) {          Process proc = processes.dequeue(); -        if (!proc.qproc->waitForFinished()) { -            cerr << "kde4automoc: process failed: " << proc.qproc->errorString() << endl; -            failed = true; -            if (!proc.mocFilePath.isEmpty()) { -                QFile::remove(proc.mocFilePath); -            } -        } else if (proc.qproc->exitCode() != 0) { -            failed = true; -            if (!proc.mocFilePath.isEmpty()) { -                QFile::remove(proc.mocFilePath); +         +        bool result = proc.qproc->waitForFinished(); +        //ignore errors from the cmake echo process +        if (!proc.mocFilePath.isEmpty()) { +            if (!result) { +                cerr << "kde4automoc: process failed: " << proc.qproc->errorString() << endl; +                failed = true; +                if (!proc.mocFilePath.isEmpty()) { +                    QFile::remove(proc.mocFilePath); +                } +            } else if (proc.qproc->exitCode() != 0) { +                failed = true; +                if (!proc.mocFilePath.isEmpty()) { +                    QFile::remove(proc.mocFilePath); +                }              }          }          delete proc.qproc; | 
