[Sugar-devel] [PATCH Jukebox 7/8] Do not pause the stream after adding a new one

Manuel Kaufmann humitos at gmail.com
Thu Oct 4 13:29:27 EDT 2012


After the user adds the first stream to the playlist it is played
immediately and when a new stream is added, the first one is kept
playing.

Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
---
 jukeboxactivity.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jukeboxactivity.py b/jukeboxactivity.py
index ea66d34..1ad5ff1 100644
--- a/jukeboxactivity.py
+++ b/jukeboxactivity.py
@@ -459,7 +459,7 @@ class JukeboxActivity(activity.Activity):
         self.playlist_widget.update(self.playlist)
 
         try:
-            if not self.currentplaying:
+            if self.currentplaying is None:
                 logging.info("Playing: " + self.playlist[0]['url'])
                 url = self.playlist[0]['url']
                 if url.startswith('journal://'):
-- 
1.7.11.4



More information about the Sugar-devel mailing list