Author: duncan
Date: Wed Jun 27 19:02:57 2007
New Revision: 9732
Modified:
branches/rel-1/freevo/src/plugins/mediamenu.py
Log:
When going from detached web radio to view a movie a crash is caused by the
menuw being None
This should stop the crash
Modified: branches/rel-1/freevo/src/plugins/mediamenu.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/mediamenu.py (original)
+++ branches/rel-1/freevo/src/plugins/mediamenu.py Wed Jun 27 19:02:57 2007
@@ -243,7 +243,7 @@
return menu
- def eventhandler(self, event = None, menuw=None):
+ def eventhandler(self, event=None, menuw=None):
"""
eventhandler for the main menu. The menu must be regenerated
when a disc in a rom drive changes
@@ -271,7 +271,8 @@
return False
if event in (PLAY_END, USER_END, STOP) and event.context != 'menu':
- menuw.show()
+ if menuw:
+ menuw.show()
return True
# give the event to the next eventhandler in the list
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog