From 9766f04382e5c2e4eaea6a8e909bec17e4a111a8 Mon Sep 17 00:00:00 2001 From: unK Date: Sun, 7 Sep 2008 15:30:33 +0200 Subject: [PATCH] if title tag is empty, display filename (only in column view) --- src/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.cpp b/src/helpers.cpp index c6930632..a4ddd73f 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -471,7 +471,7 @@ string DisplaySongInColumns(const Song &s, void *s_template) ss = s.GetArtist(); break; case 't': - ss = s.GetTitle(); + ss = s.GetTitle() != UNKNOWN_TITLE ? s.GetTitle() : s.GetShortFilename().substr(0, s.GetShortFilename().find_last_of(".")); break; case 'b': ss = s.GetAlbum();