* src/ViewManager.py (create_pages): fix off-by-one error when preselecting last view

svn: r8390
This commit is contained in:
Martin Hawlisch
2007-04-16 13:53:55 +00:00
parent 12a002b945
commit 6b35940eac
2 changed files with 5 additions and 1 deletions

View File

@@ -780,7 +780,7 @@ class ViewManager:
use_current = Config.get(Config.USE_LAST_VIEW)
if use_current:
current_page = Config.get(Config.LAST_VIEW)
if current_page > len(self.pages):
if current_page >= len(self.pages):
current_page = 0
else:
current_page = 0