[gnome-music] window: on destroy stop the player



commit a326b527903d21fffe666bbcf6bd6b6e1d723e99
Author: Marinus Schraal <mschraal src gnome org>
Date:   Sat May 7 10:56:21 2016 +0200

    window: on destroy stop the player
    
    Stop the music from playing when the window is destroyed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761961

 gnomemusic/window.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 7e91726..fa5c5f0 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -428,6 +428,7 @@ class Window(Gtk.ApplicationWindow):
 
     @log
     def _notify_mode_disconnect(self, data=None):
+        self.player.Stop()
         self._stack.disconnect(self._on_notify_model_id)
 
     @log


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]