- audioplayer: change format of title number

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-01-31 23:15:23 +01:00
committed by Thilo Graf
parent bab794a1de
commit 0df5781246

View File

@@ -1675,7 +1675,7 @@ void CAudioPlayerGui::paintItem(int pos)
if (currpos < m_playlist.size())
{
char sNr[20];
sprintf(sNr, "%2d : ", currpos + 1);
sprintf(sNr, (currpos + 1) < 10 ? "%02d: " : "%d: ", currpos + 1);
std::string tmp = sNr;
getFileInfoToDisplay(tmp, m_playlist[currpos]);