From: Kristoffer Grönlund Date: Sun, 3 Jan 2010 12:47:42 +0000 (+0100) Subject: Stop playback when shutting down the application X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=commitdiff_plain;h=6c2ba5c5bfff0446b6043ebfa606680106be8083 Stop playback when shutting down the application --- diff --git a/jamaui/ui.py b/jamaui/ui.py index da81b10..9b6300d 100644 --- a/jamaui/ui.py +++ b/jamaui/ui.py @@ -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):