aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-08-10 16:18:51 +0100
committerConor Curran <conor.curran@canonical.com>2011-08-10 16:18:51 +0100
commitf6de74585f8b091f360debb65f2548cd8bc6ea01 (patch)
treef33cc4c446c415f013f8f5f6e082a660bab4abf8 /src/player-controller.vala
parent023090260c73fad2f22c8937fad70215d56319d1 (diff)
downloadayatana-indicator-sound-f6de74585f8b091f360debb65f2548cd8bc6ea01.tar.gz
ayatana-indicator-sound-f6de74585f8b091f360debb65f2548cd8bc6ea01.tar.bz2
ayatana-indicator-sound-f6de74585f8b091f360debb65f2548cd8bc6ea01.zip
track specific and player specific fixed
Diffstat (limited to 'src/player-controller.vala')
-rw-r--r--src/player-controller.vala17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index f46d36b..ced7d96 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -109,17 +109,20 @@ public class PlayerController : GLib.Object
public void enable_track_specific_items (string object_path)
{
- track_specific_mgr = new SpecificItemsManager (this,
- object_path,
- SpecificItemsManager.category.TRACK);
+ if (this.track_specific_mgr == null){
+ track_specific_mgr = new SpecificItemsManager (this,
+ object_path,
+ SpecificItemsManager.category.TRACK);
+ }
}
public void enable_player_specific_items (string object_path)
{
- debug ("Player specific item");
- player_specific_mgr = new SpecificItemsManager (this,
- object_path,
- SpecificItemsManager.category.PLAYER);
+ if (this.player_specific_mgr == null){
+ player_specific_mgr = new SpecificItemsManager (this,
+ object_path,
+ SpecificItemsManager.category.PLAYER);
+ }
}
public int track_specific_count ()