mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 12:53:41 +01:00
Show a nice summary if there are no configured filters
This commit is contained in:
parent
c22c3440d1
commit
846b0abfca
@ -297,6 +297,10 @@ EchonestGenerator::sentenceSummary()
|
|||||||
allcontrols.removeAll( toremove );
|
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.
|
/// Do the assembling. Start with the artists if there are any, then do all the rest.
|
||||||
for( int i = 0; i < artists.size(); i++ ) {
|
for( int i = 0; i < artists.size(); i++ ) {
|
||||||
dyncontrol_ptr artist = artists.value( i );
|
dyncontrol_ptr artist = artists.value( i );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user