if title tag is empty, display filename (only in column view)

This commit is contained in:
unK
2008-09-07 15:30:33 +02:00
parent 1398aff398
commit 9766f04382

View File

@@ -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();