Stop playback when shutting down the application
authorKristoffer Grönlund <kristoffer.gronlund@purplescout.se>
Sun, 3 Jan 2010 12:47:42 +0000 (13:47 +0100)
committerKristoffer Grönlund <kristoffer.gronlund@purplescout.se>
Sun, 3 Jan 2010 12:47:42 +0000 (13:47 +0100)
jamaui/ui.py

index da81b10..9b6300d 100644 (file)
@@ -195,6 +195,9 @@ class Jamaui(object):
     def destroy(self, widget):
         postoffice.disconnect('request-album-cover', self)
         self.save_settings()
+        from player import the_player
+        if the_player:
+            the_player.stop()
         gtk.main_quit()
 
     def show_about(self, w, win):