[banshee: 16/57] No need to store referenced items, we will or have already added the origin



commit 7550570e0e47ca5c938f726eb55a4c0b97b45c71
Author: Tobias Arrskog <topfs2 xbmc org>
Date:   Mon Jun 27 17:15:14 2011 +0200

    No need to store referenced items, we will or have already added the origin

 .../Banshee.UPnPClient/UPnPSource.cs               |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs
index 1deb088..ef73b7b 100644
--- a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs
+++ b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs
@@ -145,12 +145,18 @@ namespace Banshee.UPnPClient
 
         private void AddMusicTrack(MusicTrack basetrack)
         {
-            UPnPTrackInfo track = new UPnPTrackInfo (basetrack, this);
+            if (basetrack.IsReference)
+                return;
+
+			UPnPTrackInfo track = new UPnPTrackInfo (basetrack, this);
             track.Save();
         }
 
         private void AddAudioItem(AudioItem basetrack)
         {
+            if (basetrack.IsReference)
+                return;
+
             UPnPTrackInfo track = new UPnPTrackInfo (basetrack, this);
             track.Save();
         }



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