aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-02 20:05:00 -0600
committerTed Gould <ted@gould.cx>2014-03-02 20:05:00 -0600
commit3c07d07d3ce971d9abcc19ab58429353384cbeb4 (patch)
tree9187533dd11527a83797a50fd17abc52b3455a16
parent76d1861936ae2a7acb8291321bb1c86bb96f064e (diff)
downloadayatana-indicator-sound-3c07d07d3ce971d9abcc19ab58429353384cbeb4.tar.gz
ayatana-indicator-sound-3c07d07d3ce971d9abcc19ab58429353384cbeb4.tar.bz2
ayatana-indicator-sound-3c07d07d3ce971d9abcc19ab58429353384cbeb4.zip
Disconnect notify when removing the player
-rw-r--r--src/service.vala2
1 files changed, 2 insertions, 0 deletions
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 ();