[Kst] [Bug 112751] kst freezes when clear is pressed in debug dialog

George Staikos staikos at kde.org
Fri Sep 16 19:15:05 CEST 2005


------- 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=112751         
staikos kde org changed:

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



------- Additional Comments From staikos kde org  2005-09-16 19:15 -------
SVN commit 461163 by staikos:

This lock isn't recursive, so acquire it only once

BUG: 112751


 M  +1 -1      kstdebug.cpp  


--- trunk/extragear/graphics/kst/kst/kstdebug.cpp #461162:461163
 @ -107,11 +107,11  @
 
 
 void KstDebug::clear() {
+  clearHasNewError(); // has to be before the lock is acquired
   QMutexLocker ml(&_lock);
   _messages.clear(); 
   LogEvent *e = new LogEvent(LogEvent::LogCleared);
   QApplication::postEvent(_handler, e);
-  clearHasNewError();
 }


More information about the Kst mailing list