From 3c07d07d3ce971d9abcc19ab58429353384cbeb4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sun, 2 Mar 2014 20:05:00 -0600 Subject: Disconnect notify when removing the player --- src/service.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/service.vala b/src/service.vala index f1a002f..490e242 100644 --- a/src/service.vala +++ b/src/service.vala @@ -401,6 +401,8 @@ public class IndicatorSound.Service: Object { this.actions.remove_action ("previous." + player.id); this.actions.remove_action ("play-playlist." + player.id); + player.notify.disconnect (this.eventually_update_player_actions); + this.menus.@foreach ( (profile, menu) => menu.remove_player (player)); this.update_preferred_players (); -- cgit v1.2.3