From 991ef8684f14970600e6b8f0745669d77cee7e42 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Mon, 24 Mar 2008 22:47:29 +0000 Subject: [PATCH] Prefer Song Name in Window Title --- Sources/VLDocument.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index a5026cc..9cafedb 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -565,4 +565,12 @@ [self didChangeSong]; } +- (NSString *) displayName +{ + if ([songTitle isEqual:@""]) + return [super displayName]; + else + return songTitle; +} + @end