]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiProgress.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiProgress.cpp
index 7347f30ace4a5287a0786baddde2c95b2991a8e5..0735265384532e891035c4346f3fecb3a128d498 100644 (file)
@@ -48,7 +48,6 @@ GuiProgress::GuiProgress(GuiView * view) : view_(view)
        connect(this, SIGNAL(appendMessage(QString const &)), SLOT(doAppendMessage(QString const &)));
        connect(this, SIGNAL(appendError(QString const &)), SLOT(doAppendError(QString const &)));
        connect(this, SIGNAL(clearMessages()), SLOT(doClearMessages()));
-       connect(this, SIGNAL(lyxerrFlush()), SLOT(dolyxerrFlush()));
        
        // Alert interface
        connect(this, SIGNAL(warning(QString const &, QString const &)),
@@ -67,20 +66,20 @@ GuiProgress::GuiProgress(GuiView * view) : view_(view)
 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);
 }
 
 
@@ -96,13 +95,10 @@ void GuiProgress::doClearMessages()
 }
 
 
-void GuiProgress::dolyxerrFlush()
+void GuiProgress::lyxerrFlush()
 {
-       appendError(toqstr(lyxerr_stream_.str()));
+       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();
 }