diff --git a/src/SongUtil.cpp b/src/SongUtil.cpp index 466a8de90d..a57d8957e8 100644 --- a/src/SongUtil.cpp +++ b/src/SongUtil.cpp @@ -642,6 +642,9 @@ void SongUtil::SortSongPointerArrayByNumPlays( std::vector &vpSongsInOut, g_mapSongSortVal.clear(); } +static LocalizedString SECTION_RECENTLY_PLAYED("SongSort", "Recently Played"); +static LocalizedString SECTION_POPULAR_SONGS("SongSort", "Most Played"); + RString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so ) { if( pSong == nullptr ) @@ -710,10 +713,11 @@ RString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so case SORT_POPULARITY: case SORT_POPULARITY_P1: case SORT_POPULARITY_P2: + return SECTION_POPULAR_SONGS.GetValue(); case SORT_RECENT: case SORT_RECENT_P1: case SORT_RECENT_P2: - return RString(); + return SECTION_RECENTLY_PLAYED.GetValue(); case SORT_TOP_GRADES_P1: { int iCounts[NUM_Grade];