banshee r4678 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor



Author: gburt
Date: Thu Oct  9 18:21:37 2008
New Revision: 4678
URL: http://svn.gnome.org/viewvc/banshee?rev=4678&view=rev

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

	* src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs:
	Clarify the logging we do when a track editor page fails to initialize -
	it's not necessarily b/c it doesn't implement ITrackEditorPage.

	* src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/AlbumArtistEntry.cs:
	Fix regression where the basic editor page wouldn't load when editing a
	single item.



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/AlbumArtistEntry.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/AlbumArtistEntry.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/AlbumArtistEntry.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/AlbumArtistEntry.cs	Thu Oct  9 18:21:37 2008
@@ -92,7 +92,11 @@
         private void UpdateSensitivities ()
         {
             entry.Sensitive = IsCompilation;
-            track_artist_sync_button.Sensitive = !IsCompilation;
+
+            // Will be null if we're only editing one track
+            if (track_artist_sync_button != null) {
+                track_artist_sync_button.Sensitive = !IsCompilation;
+            }
         }
     }
 }

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs	Thu Oct  9 18:21:37 2008
@@ -205,7 +205,7 @@
                     }
                     page.Changed += OnPageChanged;
                 } catch (Exception e) {
-                    Hyena.Log.Exception ("Invalid NotebookPage extension node. Should implement ITrackEditorPage.", e);
+                    Hyena.Log.Exception ("Failed to initialize NotebookPage extension node. Ensure it implements ITrackEditorPage.", e);
                 }
             }
             



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