Merge remote-tracking branch 'origin/4.10' into 4.11

Change-Id: I9b53d00dbc79d52e52f6e18761e6a6c6faec6c84
This commit is contained in:
Eike Ziller
2019-10-08 15:21:12 +02:00
2 changed files with 10 additions and 4 deletions

View File

@@ -552,8 +552,14 @@ void LogWindow::showOutput(int channel, const QString &output)
out.append(nchar);
m_queuedOutput.append(out);
m_outputTimer.setSingleShot(true);
m_outputTimer.start(80);
// flush the output if it exceeds 16k to prevent out of memory exceptions on regular output
if (m_queuedOutput.size() > 16 * 1024) {
m_outputTimer.stop();
doOutput();
} else {
m_outputTimer.setSingleShot(true);
m_outputTimer.start(80);
}
}
void LogWindow::doOutput()