Author: bugman Date: Mon Apr 16 19:24:42 2012 New Revision: 15739 URL: http://svn.gna.org/viewcvs/relax?rev=15739&view=rev Log: The analysis deletion buttons now do nothing if the notebook is not created yet. This avoids problems on the new wxPython 2.9 versions. 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=15739&r1=15738&r2=15739&view=diff ============================================================================== --- 1.3/gui/analyses/__init__.py (original) +++ 1.3/gui/analyses/__init__.py Mon Apr 16 19:24:42 2012 @@ -287,6 +287,10 @@ @type event: wx event """ + # Notebook not created yet, so skip. + if not hasattr(self, 'notebook'): + return + # Execution lock. if status.exec_lock.locked(): return @@ -309,6 +313,10 @@ @param event: The wx event. @type event: wx event """ + + # Notebook not created yet, so skip. + if not hasattr(self, 'notebook'): + return # Execution lock. if status.exec_lock.locked():