mailr14559 - /1.3/gui/components/spectrum.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 01, 2011 - 11:37:
Author: bugman
Date: Thu Sep  1 11:37:04 2011
New Revision: 14559

URL: http://svn.gna.org/viewcvs/relax?rev=14559&view=rev
Log:
Bug fix for the freezing of the GUI.

The spectrum list GUI element was trying to update itself during execution 
lock, causing races if
the spectrum data structures in the relax data store are being modified as 
the GUI element update
is occurring.  This would result in a hard lock of the GUI!


Modified:
    1.3/gui/components/spectrum.py

Modified: 1.3/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=14559&r1=14558&r2=14559&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Thu Sep  1 11:37:04 2011
@@ -142,6 +142,10 @@
     def build_element(self):
         """Build the spectra listing GUI element."""
 
+        # Execution lock, so do nothing.
+        if status.exec_lock.locked():
+            return
+
         # First freeze the element, so that the GUI element doesn't update 
until the end.
         self.element.Freeze()
 




Related Messages


Powered by MHonArc, Updated Thu Sep 01 12:00:01 2011