Author: dmeyer
Date: Mon Feb 19 20:06:43 2007
New Revision: 9249

Modified:
   trunk/ui/src/image/viewer.py

Log:
set item in playlist

Modified: trunk/ui/src/image/viewer.py
==============================================================================
--- trunk/ui/src/image/viewer.py        (original)
+++ trunk/ui/src/image/viewer.py        Mon Feb 19 20:06:43 2007
@@ -157,7 +157,13 @@
             self.set_eventmap('image')
 
         filename      = item.filename
+        # Store item and playlist. We need to keep the playlist object
+        # here to make sure it is not deleted when player is running in
+        # the background.
         self.item = item
+        self.playlist = self.item.get_playlist()
+        if self.playlist:
+            self.playlist.select(self.item)
 
         if not self.last_item:
             # We just started, update the screen to make it

-------------------------------------------------------------------------
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