banshee r4400 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Collection
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4400 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Collection
- Date: Tue, 19 Aug 2008 19:08:44 +0000 (UTC)
Author: gburt
Date: Tue Aug 19 19:08:44 2008
New Revision: 4400
URL: http://svn.gnome.org/viewvc/banshee?rev=4400&view=rev
Log:
2008-08-19 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs: Ensure TrackCount
and DiscCount are never less than TrackNumber and DiscNumber respectively.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs (original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs Tue Aug 19 19:08:44 2008
@@ -245,7 +245,7 @@
}
public virtual int TrackCount {
- get { return track_count; }
+ get { return TrackNumber > track_count ? TrackNumber : track_count; }
set { track_count = value; }
}
@@ -255,7 +255,7 @@
}
public virtual int DiscCount {
- get { return disc_count; }
+ get { return DiscNumber > disc_count ? DiscNumber : disc_count; }
set { disc_count = value; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]