mailr27465 - /trunk/gui/analyses/auto_noe.py


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

Header


Content

Posted by edward on February 03, 2015 - 14:58:
Author: bugman
Date: Tue Feb  3 14:58:20 2015
New Revision: 27465

URL: http://svn.gna.org/viewcvs/relax?rev=27465&view=rev
Log:
Improved memory management in the NOE GUI analysis peak_wizard_launch() 
method.

This method was just overwriting the self.peak_wizard object with a new 
object.  However this does
not destroy the wxPython window.  Now if a peak wizard is detected, its 
Destroy() method is called
before overwriting the object.


Modified:
    trunk/gui/analyses/auto_noe.py

Modified: trunk/gui/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/auto_noe.py?rev=27465&r1=27464&r2=27465&view=diff
==============================================================================
--- trunk/gui/analyses/auto_noe.py      (original)
+++ trunk/gui/analyses/auto_noe.py      Tue Feb  3 14:58:20 2015
@@ -304,6 +304,10 @@
         @type event:    wx event
         """
 
+        # Destroy the peak intensity wizard, if it exists.
+        if hasattr(self, 'peak_wizard'):
+            self.peak_wizard.Destroy()
+
         # A new wizard instance.
         self.peak_wizard = Peak_intensity_wizard(noe=True)
 




Related Messages


Powered by MHonArc, Updated Tue Feb 03 15:20:01 2015