void GuiProgress::doProcessStarted(QString const & cmd)
{
QString time = QTime::currentTime().toString();
- appendText(time + ": <" + cmd + "> started\n");
+ appendText(time + ": <" + cmd + "> started");
}
void GuiProgress::doProcessFinished(QString const & cmd)
{
QString time = QTime::currentTime().toString();
- appendText(time + ": <" + cmd + "> done\n");
+ appendText(time + ": <" + cmd + "> done");
}
void GuiProgress::doAppendMessage(QString const & msg)
{
- appendText(msg + "\n");
+ appendText(msg);
}
{
appendLyXErrMessage(toqstr(lyxerr_stream_.str()));
lyxerr_stream_.str("");
- // give the user a chance to disable debug messages because
- // showing Debug::ANY messages completely blocks the GUI
- QApplication::processEvents();
}
{
widget_->outTE->insertPlainText(text);
widget_->outTE->ensureCursorVisible();
+
+ // Give the user a chance to disable debug messages because
+ // showing Debug::ANY messages completely blocks the GUI.
+ // Text is not always send as the whole line, so we must be
+ // careful about eolns.
+ if (text.endsWith("\n"))
+ QApplication::processEvents();
}