[banshee] Use Equals() to compare cache IDs
- From: Kristian Høgsberg <krh src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] Use Equals() to compare cache IDs
- Date: Fri, 24 Apr 2009 00:25:54 -0400 (EDT)
commit 48512f437af8a4216cff9ee581bd79b65862e016
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]