1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

fix grammar when only 1 non-artist filter

This commit is contained in:
Leo Franchi
2011-02-06 22:53:49 -05:00
parent 48deb06741
commit c76cbf1e72

View File

@@ -384,8 +384,9 @@ EchonestGenerator::sentenceSummary()
/// end case: if this is the last AND there is not a sorting filter (so this is the real last one) /// end case: if this is the last AND there is not a sorting filter (so this is the real last one)
const bool last = ( i == allcontrols.size() - 1 && sorting.isNull() ); const bool last = ( i == allcontrols.size() - 1 && sorting.isNull() );
QString prefix, suffix; QString prefix, suffix;
if( last ) { if( last ) { // only if there is not just 1
prefix = "and "; if( !( artists.isEmpty() && allcontrols.size() == 1 ) )
prefix = "and ";
suffix = "."; suffix = ".";
} else } else
suffix = ", "; suffix = ", ";