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:
parent
57bf9a19b3
commit
20253f84c1
@ -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 = ".";
|
||||
|
Loading…
x
Reference in New Issue
Block a user