Author: bugman Date: Wed Jun 29 14:56:12 2011 New Revision: 13293 URL: http://svn.gna.org/viewcvs/relax?rev=13293&view=rev Log: The notebook switches to the previous page if the current one is deleted now. Modified: branches/gui_testing/gui/analyses/__init__.py Modified: branches/gui_testing/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=13293&r1=13292&r2=13293&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/__init__.py (original) +++ branches/gui_testing/gui/analyses/__init__.py Wed Jun 29 14:56:12 2011 @@ -142,7 +142,12 @@ # The current page has been deleted, so switch one back. if index == self._current: + # Decrement. self._current -= 1 + + # Switch to that page. + self.notebook.SetSelection(self._current) + # No more analyses, so in the initial state. if self._num_analyses == 0: