]> git.lyx.org Git - features.git/commitdiff
start the timer in the correct thread
authorPeter Kümmel <syntheticpp@gmx.net>
Sat, 15 Jan 2011 22:39:46 +0000 (22:39 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sat, 15 Jan 2011 22:39:46 +0000 (22:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37224 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiProgress.cpp
src/frontends/qt4/GuiProgress.h

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()));
index 9c475ad9a17781b89b259fefd83077126a990a21..1d80259f71eda3cede75cb4a9ef086827ab61c53 100644 (file)
@@ -55,8 +55,9 @@ Q_SIGNALS:
        void appendLyXErrMessage(QString const & text);
 
 
-       void clearMessageText();    
+       void clearMessageText();
        void updateStatusBarMessage(QString const &);
+       void triggerFlush();
 
        // Alert interface
        void warning(QString const & title, QString const & message);
@@ -76,7 +77,8 @@ private Q_SLOTS:
        void doError(QString const &, QString const &);
        void doInformation(QString const &, QString const &);
 
-        void updateWithLyXErr();
+       void updateWithLyXErr();
+       void startFlushing();
 
 
 private: