Commit f1253b7f authored by dt's avatar dt
Browse files

Fix outputwindow to not give output twice to the outputwindow

Reviewed-By: Erik Verbruggen
parent a0598727
...@@ -532,7 +532,8 @@ void OutputWindow::appendApplicationOutputInline(const QString &output, bool onS ...@@ -532,7 +532,8 @@ void OutputWindow::appendApplicationOutputInline(const QString &output, bool onS
if (!enforceNewline) { if (!enforceNewline) {
newline = out.indexOf(QLatin1Char('\n')); newline = out.indexOf(QLatin1Char('\n'));
moveCursor(QTextCursor::End); moveCursor(QTextCursor::End);
m_formatter->appendApplicationOutput(newline < 0 ? out : out.left(newline), onStdErr); // doesn't enforce new paragraph like appendPlainText if (newline != -1)
m_formatter->appendApplicationOutput(out.left(newline), onStdErr); // doesn't enforce new paragraph like appendPlainText
} }
QString s = out.mid(newline+1); QString s = out.mid(newline+1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment