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



Author: gburt
Date: Mon Oct  6 15:13:24 2008
New Revision: 4655
URL: http://svn.gnome.org/viewvc/banshee?rev=4655&view=rev

Log:
2008-10-06  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs:
	Change way in which we mark the album or artist as changed (and therefore
	know to save it) to account for splitting the load-from-db properties out
	from the public properties used by the editor etc.  Fixes issue with the
	artist info not getting saved in the editor (BGO #555111).



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	Mon Oct  6 15:13:24 2008
@@ -66,7 +66,7 @@
             get { return provider ?? provider = new DatabaseTrackModelProvider<DatabaseTrackInfo> (ServiceManager.DbConnection); }
         }
 
-        private bool? artist_changed = null, album_changed = null;
+        private bool artist_changed = false, album_changed = false;
         private bool uri_fields_dirty = false;
         
         public DatabaseTrackInfo () : base ()
@@ -228,7 +228,7 @@
                     return;
 
                 base.ArtistName = value;
-                artist_changed = artist_changed != null;
+                artist_changed = true;
             }
         }
 
@@ -246,7 +246,7 @@
                     return;
 
                 base.AlbumTitle = value;
-                album_changed = album_changed != null;
+                album_changed = true;
             }
         }
 
@@ -264,7 +264,7 @@
                     return;
 
                 base.AlbumArtist = value;
-                album_changed = album_changed != null;
+                album_changed = true;
             }
         }
         
@@ -278,7 +278,7 @@
             get { return base.IsCompilation; }
             set {
                 base.IsCompilation = value;
-                album_changed = album_changed != null;
+                album_changed = true;
             }
         }
         



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