[banshee] Use Equals() to compare cache IDs



commit abeffd4817f6ee156c002e5e94544636d86b7bec
Author: John Millikin <jmillikin gmail com>
Date:   Thu Apr 23 18:58:30 2009 -0700

    Use Equals() to compare cache IDs
    
    Fixes InvalidCastException when starting playback (BGO #579452).
---
 .../DatabaseTrackInfo.cs                           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
index 3a3e8c7..260c0ed 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
@@ -107,7 +107,7 @@ namespace Banshee.Collection.Database
             return a != null && b != null && 
                 a.TrackId == b.TrackId && 
                 a.CacheModelId == b.CacheModelId && 
-                (long)a.CacheEntryId == (long)b.CacheEntryId;
+                a.CacheEntryId.Equals (b.CacheEntryId);
         }
         
         public DatabaseArtistInfo Artist {



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