Author: dmeyer
Date: Sat Oct 28 19:53:58 2006
New Revision: 8495

Modified:
   trunk/ui/src/directory.py

Log:
only react on events if we are in the dir

Modified: trunk/ui/src/directory.py
==============================================================================
--- trunk/ui/src/directory.py   (original)
+++ trunk/ui/src/directory.py   Sat Oct 28 19:53:58 2006
@@ -270,6 +270,10 @@
 
     # eventhandler for this item
     def eventhandler(self, event):
+
+        if self.item_menu == None:
+            return Playlist.eventhandler(self, event)
+
         if event == DIRECTORY_CHANGE_DISPLAY_TYPE:
             possible = [ ]
 
@@ -299,8 +303,7 @@
             else:
                 OSD_MESSAGE.post('Show all items')
 
-        if event == PLAY_START and self.item_menu and \
-               event.arg in self.item_menu.choices:
+        if event == PLAY_START and event.arg in self.item_menu.choices:
             # update selection and pass the event to playlist after that
             self.item_menu.select(event.arg)
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to