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)
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits