]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiProgress.cpp
start the timer in the correct thread
[features.git] / src / frontends / qt4 / GuiProgress.cpp
index d72ef0e1294a117187386194b08311e469d7dea3..ee2a5925c2604d8ee61ccde93e341105c125acfb 100644 (file)
@@ -58,6 +58,8 @@ GuiProgress::GuiProgress()
                SLOT(doError(QString const &, QString const &)));
        connect(this, SIGNAL(information(QString const &, QString const &)),
                SLOT(doInformation(QString const &, QString const &)));
+       connect(this, SIGNAL(triggerFlush()),
+               SLOT(startFlushing()));
 
        flushDelay_.setInterval(200);
        flushDelay_.setSingleShot(true);
@@ -101,12 +103,18 @@ void GuiProgress::doClearMessages()
 }
 
 
-void GuiProgress::lyxerrFlush()
+void GuiProgress::startFlushing()
 {
        flushDelay_.start();
 }
 
 
+void GuiProgress::lyxerrFlush()
+{
+       triggerFlush();
+}
+
+
 void GuiProgress::updateWithLyXErr()
 {
        appendLyXErrMessage(toqstr(lyxerr_stream_.str()));