Author: duncan
Date: Fri Jan  5 05:17:16 2007
New Revision: 8931

Modified:
   branches/rel-1/freevo/src/menu.py

Log:
Patch from Ryan Roth to correctly handle shutdown when
it is not in the main page


Modified: branches/rel-1/freevo/src/menu.py
==============================================================================
--- branches/rel-1/freevo/src/menu.py   (original)
+++ branches/rel-1/freevo/src/menu.py   Fri Jan  5 05:17:16 2007
@@ -269,10 +269,10 @@
         menu = self.menustack[0]
         self.init_page()
 
-        if media == 'shutdown':  #bookmark
+        if media == 'shutdown': 
             menu.selected = 0
             for menuitem in self.menustack[0].choices:
-                if self.all_items.index(menuitem) >= len(self.all_items)-1:
+                if self.all_items.index(menuitem) >= self.rows - 1:
                     self.goto_next_page()
                 if string.find(str(menuitem), 'shutdown.') > 0:
                     menu.selected = menuitem

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to