banshee r4221 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection.Database



Author: gburt
Date: Sun Jul 20 17:44:38 2008
New Revision: 4221
URL: http://svn.gnome.org/viewvc/banshee?rev=4221&view=rev

Log:
2008-07-20  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs:
	Cast CacheEntryIds to ints to get value comparison.  Fixes bug where the
	playback indicator next to the playing track would disappear, which was
	introduced when I committed the genre filter support and made the
	CacheEntryId an object.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs	Sun Jul 20 17:44:38 2008
@@ -106,7 +106,6 @@
             if (db_track == null) {
                 return base.TrackEqual (track);
             }
-            
             return TrackEqual (this, db_track);
         }
         
@@ -115,7 +114,7 @@
             return a != null && b != null && 
                 a.TrackId == b.TrackId && 
                 a.CacheModelId == b.CacheModelId && 
-                a.CacheEntryId == b.CacheEntryId;
+                (int)a.CacheEntryId == (int)b.CacheEntryId;
         }
         
         public DatabaseArtistInfo Artist {



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