Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/lib


Modified Files:
        playlist.rb 


Log Message:
fixed a few potential crashes
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- playlist.rb 24 Apr 2005 22:33:15 -0000      1.1
+++ playlist.rb 25 Apr 2005 21:53:28 -0000      1.2
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.1 2005/04/24 22:33:15 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.2 2005/04/25 21:53:28 tsauerbeck Exp $
 
 require "euphoria/playlist_item"
 
@@ -19,7 +19,7 @@
        end
 
        def current_item
-               [EMAIL PROTECTED]
+               @current_pos && [EMAIL PROTECTED]
        end
 
        def show(eet)
@@ -82,7 +82,7 @@
 
                each { |i| i.show(eet, @container) }
 
-               current_item.hilight
+               current_item && current_item.hilight
        end
 
        def <<(id)




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to