mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 04:11:46 +02:00
Show a nice summary if there are no configured filters
This commit is contained in:
@@ -297,6 +297,10 @@ EchonestGenerator::sentenceSummary()
|
||||
allcontrols.removeAll( toremove );
|
||||
}
|
||||
|
||||
/// If there are no artists and no filters, show some help text
|
||||
if( artists.isEmpty() && allcontrols.isEmpty() )
|
||||
sentence = "No configured filters!";
|
||||
|
||||
/// Do the assembling. Start with the artists if there are any, then do all the rest.
|
||||
for( int i = 0; i < artists.size(); i++ ) {
|
||||
dyncontrol_ptr artist = artists.value( i );
|
||||
|
Reference in New Issue
Block a user