[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Jul 7 21:15:01 CEST 2004


CVS commit by staikos: 

more update fixes


  M +1 -0      kstdoc.cpp   1.94
  M +10 -4     updatethread.cpp   1.20


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.93:1.94
@@ -776,4 +776,5 @@ bool KstDoc::event(QEvent *e) {
       kdDebug() << "Update data dialogs" << endl;
       emit dataChanged();
+      KstApp::inst()->paintAll();
     } else if (te->_eventType == ThreadEvent::UpdateAllDialogs) {
       kdDebug() << "Update ALL dialogs" << endl;

--- kdeextragear-2/kst/kst/updatethread.cpp  #1.19:1.20
@@ -100,6 +100,8 @@ void UpdateThread::run() {
       if (gotData) {
         QApplication::postEvent(_doc, new ThreadEvent(ThreadEvent::UpdateDataDialogs));
-      }
+        // implicit repaint
+      } else {
       QApplication::postEvent(_doc, new ThreadEvent(ThreadEvent::Repaint));
+      }
 
     }
@@ -140,5 +142,5 @@ bool UpdateThread::doUpdates(bool force,
     KstDataSourcePtr dsp = KST::dataSourceList[i];
 
-    U = dsp->update();
+    dsp->update();
 
     if (_done || _paused) {
@@ -147,5 +149,5 @@ bool UpdateThread::doUpdates(bool force,
       kdDebug() << "1 Returning from scan with U=" << (int)U << endl;
 #endif
-      return U == KstObject::UPDATE;
+      return false;
     }
   }
@@ -209,7 +211,11 @@ bool UpdateThread::doUpdates(bool force,
 #endif
       dop->writeLock();
-      dop->update(_updateCounter);
+      tU = dop->update(_updateCounter);
       dop->writeUnlock();
 
+      if (tU != KstObject::NO_CHANGE && U == KstObject::NO_CHANGE) {
+        U = tU;
+      }
+
       if (_done || _paused) {
 #if UPDATEDEBUG > 1





More information about the Kst mailing list