[Kst] [Bug 94190] Pressing the reload button rapidly repeatedly crashes kst

George Staikos staikos at kde.org
Sun Dec 5 22:51:48 CET 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=94190        
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2004-12-05 22:51 -------
CVS commit by staikos: 

- lock the rvector when reloading (oops)
- disable debug again (oops^2)
BUG: 94190


  M +2 -0      kst.cpp   1.262
  M +1 -1      updatethread.cpp   1.34


--- kdeextragear-2/kst/kst/kst.cpp  #1.261:1.262
 @ -1513,5 +1513,7  @ void KstApp::reload() {
     KstRVectorPtr r = kst_cast<KstRVector>(*i);
     if (r) {
+      r->writeLock();
       r->reload();
+      r->writeUnlock();
     }
   }

--- kdeextragear-2/kst/kst/updatethread.cpp  #1.33:1.34
 @ -29,5 +29,5  @
 
 // 0 - none, 1 - some, 2 - lots, 3 - too much
-#define UPDATEDEBUG 2
+#define UPDATEDEBUG 0
 
 UpdateThread::UpdateThread(KstDoc *doc)



More information about the Kst mailing list