Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1:/tmp/cvs-serv7592
Modified Files:
main.py
Log Message:
Temporary fix for a crash.... probably not the ideal solution, but I don't
have the time right now to investigate fully.
To reproduce the crash, remove the "hasattr()" line and click 'display'
when in any 'feature' menu (TV, Movies, Music, etc.)
Index: main.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/skins/main/main.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** main.py 10 Jan 2004 13:20:52 -0000 1.31
--- main.py 13 Jan 2004 15:46:19 -0000 1.32
***************
*** 10,13 ****
--- 10,20 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.32 2004/01/13 15:46:19 outlyer
+ # Temporary fix for a crash.... probably not the ideal solution, but I don't
+ # have the time right now to investigate fully.
+ #
+ # To reproduce the crash, remove the "hasattr()" line and click 'display'
+ # when in any 'feature' menu (TV, Movies, Music, etc.)
+ #
# Revision 1.31 2004/01/10 13:20:52 dischi
# better skin cache function and set_base_fxd to load a basic skin
***************
*** 310,322 ****
settings = self.settings
- # get the correct <menu>
- if settings.menu.has_key(menu.item_types):
- area = settings.menu[menu.item_types]
- else:
- area = settings.menu['default']
! if self.display_style['menu'] >= len(area.style):
! self.display_style['menu'] = 0
! self.display_style['menu'] = (self.display_style['menu'] + 1) %
len(area.style)
return 1
--- 317,331 ----
settings = self.settings
! if hasattr(settings,'menu'):
! # XXX FIXME
! if settings.menu.has_key(menu.item_types):
! area = settings.menu[menu.item_types]
! else:
! area = settings.menu['default']
!
! if self.display_style['menu'] >= len(area.style):
! self.display_style['menu'] = 0
! self.display_style['menu'] = (self.display_style['menu'] + 1) %
len(area.style)
return 1
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog