[banshee] [ThickClient] Fix album grid when-to-hide-artist logic



commit 0bb7808a731deca8cae2f4fe742ba78e11cde5cc
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu May 13 17:11:42 2010 -0700

    [ThickClient] Fix album grid when-to-hide-artist logic
    
    Now only will hide it if it's the first item and the artist is unknown
    (which the All Album's artist is).

 .../Banshee.Collection.Gui/DataViewChildAlbum.cs   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
index 80fbd14..bf24417 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DataViewChildAlbum.cs
@@ -277,7 +277,8 @@ namespace Banshee.Collection.Gui
                 throw new InvalidCastException ("ColumnCellAlbum can only bind to AlbumInfo objects");
             }
 
-            lines = new [] { album.DisplayTitle, ModelRowIndex == 0 ? "" : album.DisplayArtistName };
+            bool hide_artist = ModelRowIndex == 0 && String.IsNullOrEmpty (album.ArtistName);
+            lines = new [] { album.DisplayTitle, hide_artist ? "" : album.DisplayArtistName };
             image = artwork_manager != null
                 ? artwork_manager.LookupScaleSurface (album.ArtworkId, (int)ImageSize, true)
                 : null;



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