Author: bugman Date: Tue Aug 9 14:49:29 2011 New Revision: 14294 URL: http://svn.gna.org/viewcvs/relax?rev=14294&view=rev Log: The refreshing of the results viewer window is now thread safe. Modified: branches/gui_testing/gui/results_viewer.py Modified: branches/gui_testing/gui/results_viewer.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/results_viewer.py?rev=14294&r1=14293&r2=14294&view=diff ============================================================================== --- branches/gui_testing/gui/results_viewer.py (original) +++ branches/gui_testing/gui/results_viewer.py Tue Aug 9 14:49:29 2011 @@ -261,7 +261,14 @@ def refresh(self): - """Update the list of results on choosing a data pipe.""" + """Update the list of result files.""" + + # Thread safe. + wx.CallAfter(self.refresh_safe) + + + def refresh_safe(self): + """Update the list of result files (thread safe).""" # Acquire the pipe lock. status.pipe_lock.acquire()