mailr14692 - /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 19, 2011 - 12:20:
Author: bugman
Date: Mon Sep 19 12:20:44 2011
New Revision: 14692

URL: http://svn.gna.org/viewcvs/relax?rev=14692&view=rev
Log:
The current page index is changed if a page before it is deleted.

This is to remove a GUI bug.


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=14692&r1=14691&r2=14692&view=diff
==============================================================================
--- 1.3/gui/analyses/__init__.py (original)
+++ 1.3/gui/analyses/__init__.py Mon Sep 19 12:20:44 2011
@@ -201,6 +201,10 @@
         if index == self._current and self._current != 0:
             self.switch_page(self._current-1)
 
+        # Shift the current page back one if necessary.
+        if self._current > index:
+            self._current -= 1
+
         # No more analyses, so in the initial state.
         if self._num_analyses == 0:
             self.set_init_state()




Related Messages


Powered by MHonArc, Updated Mon Sep 19 13:20:02 2011