X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fretracer.cpp;h=fa220117f0c5bb9de24d490d0b5d5c07f2ed7e53;hb=8fdf56c564b78f24bc4157df7e4480358e66b3e9;hp=865f61fcb5d1004822428e2cff915e31de76d542;hpb=676cd17c41c70acf2b295334220e555f0fabfde8;p=apitrace diff --git a/gui/retracer.cpp b/gui/retracer.cpp index 865f61f..fa22011 100644 --- a/gui/retracer.cpp +++ b/gui/retracer.cpp @@ -255,11 +255,11 @@ void RetraceProcess::replayFinished(int exitCode, QProcess::ExitStatus exitStatu } } - QString errStr = m_process->readAllStandardError(); - QStringList errorLines = errStr.split('\n'); + m_process->setReadChannel(QProcess::StandardError); QList errors; - QRegExp regexp("(^\\d+): +(\\b\\w+\\b): (.+$)"); - foreach(QString line, errorLines) { + QRegExp regexp("(^\\d+): +(\\b\\w+\\b): ([^\\r\\n]+)[\\r\\n]*$"); + while (!m_process->atEnd()) { + QString line = m_process->readLine(); if (regexp.indexIn(line) != -1) { ApiTraceError error; error.callIndex = regexp.cap(1).toInt();