From 20253f84c1204f17e85106f35ca1ff1701d4eb6c Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sun, 30 Jan 2011 22:45:16 -0500 Subject: [PATCH] fix case with sorting --- .../playlist/dynamic/echonest/EchonestGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp b/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp index d81b92aad..a75d0d71b 100644 --- a/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp +++ b/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.cpp @@ -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 = ".";