mailr14743 - /1.3/gui/analyses/__init__.py


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

Header


Content

Posted by edward on September 21, 2011 - 21:45:
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)
 




Related Messages


Powered by MHonArc, Updated Wed Sep 21 22:20:01 2011