[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Nov 23 07:09:28 CET 2004


CVS commit by staikos: 

barth's loading update fix


  M +5 -1      kstdoc.cpp   1.136


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.135:1.136
@@ -153,4 +153,6 @@ bool KstDoc::openDocument(const KURL& ur
 
   deleteContents();
+  _updating = true; // block update thread from sending events 'till we're done
+
   QFile f(url.path());
   if (!f.exists()) {
@@ -431,4 +433,6 @@ bool KstDoc::openDocument(const KURL& ur
   _modified = false;
 
+  QTimer::singleShot(0, this, SLOT(enableUpdates()));
+  
   return true;
 }





More information about the Kst mailing list