From 6873a2730ba86adda28b944f49dd0ee4da0c2073 Mon Sep 17 00:00:00 2001 From: areff Date: Mon, 18 Feb 2008 10:25:04 +0000 Subject: [PATCH] Fixed broken window title display when no artist tag is found --- Playlist/PlaylistEntry.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index 174973e80..3f83288eb 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -278,9 +278,8 @@ - (NSString *)display { - if ([[self artist] isEqualToString:@""]) { - return title; - } + if ((artist == NULL) || ([[self artist] isEqualToString:@""])) + return title; else { return [NSString stringWithFormat:@"%@ - %@", artist, title]; }