forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.10' into 4.11
Change-Id: I9b53d00dbc79d52e52f6e18761e6a6c6faec6c84
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user