Author: bugman Date: Wed Sep 21 21:45:16 2011 New Revision: 14743 URL: http://svn.gna.org/viewcvs/relax?rev=14743&view=rev Log: Fixed a bug on MS Windows for the 'Close all analyses' menu entry and toolbar button. The sequence of internal events is very different on Windows compared to Mac OS X and GNU/Linux, and not everything had been processed before everything was deleted resulting in updates to dead GUI elements. Modified: 1.3/gui/analyses/__init__.py Modified: 1.3/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/__init__.py?rev=14743&r1=14742&r2=14743&view=diff ============================================================================== --- 1.3/gui/analyses/__init__.py (original) +++ 1.3/gui/analyses/__init__.py Wed Sep 21 21:45:16 2011 @@ -163,6 +163,9 @@ # Delete the current tabs. while self._num_analyses: + # Flush all pending events (bug fix for MS Windows). + wx.Yield() + # Remove the last analysis, until there is nothing left. self.delete_analysis(self._num_analyses-1)