1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 04:51:53 +02:00

fix case with sorting

This commit is contained in:
Leo Franchi 2011-01-30 22:45:16 -05:00
parent 57bf9a19b3
commit 20253f84c1

View File

@ -316,14 +316,14 @@ EchonestGenerator::sentenceSummary()
suffix = " and ";
else if( artists.size() > 2 ) // in a list with more after
suffix = ", ";
else if( allcontrols.isEmpty() ) // the last one, and no more controls, so put a period
else if( allcontrols.isEmpty() && sorting.isNull() ) // the last one, and no more controls, so put a period
suffix = ".";
else
suffix = " ";
} else {
center = summary.mid( summary.indexOf( "~" ) + 1 );
if( i == artists.size() - 1 ) { // if there are more, add an " and "
if( !allcontrols.isEmpty() )
if( !( allcontrols.isEmpty() && sorting.isNull() ) )
suffix = ", ";
else
suffix = ".";