1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

fix stopping completely on track error

fix logic error introduced in last commit
This commit is contained in:
Leo Franchi
2011-02-17 22:13:58 -05:00
parent 646bc1d652
commit 965cf876c3
2 changed files with 3 additions and 5 deletions

View File

@@ -244,9 +244,9 @@ EchonestGenerator::onlyThisArtistType( Echonest::DynamicPlaylist::ArtistTypeEnum
bool some = false; bool some = false;
foreach( const dyncontrol_ptr& control, m_controls ) { foreach( const dyncontrol_ptr& control, m_controls ) {
if( control->selectedType() == "Artist" || control->selectedType() == "Artist Description" && static_cast<Echonest::DynamicPlaylist::ArtistTypeEnum>( control->match().toInt() ) != type ) { if( ( control->selectedType() == "Artist" || control->selectedType() == "Artist Description" ) && static_cast<Echonest::DynamicPlaylist::ArtistTypeEnum>( control->match().toInt() ) != type ) {
only = false; only = false;
} else if( control->selectedType() == "Artist" || control->selectedType() == "Artist Description" && static_cast<Echonest::DynamicPlaylist::ArtistTypeEnum>( control->match().toInt() ) == type ) { } else if( ( control->selectedType() == "Artist" || control->selectedType() == "Artist Description" ) && static_cast<Echonest::DynamicPlaylist::ArtistTypeEnum>( control->match().toInt() ) == type ) {
some = true; some = true;
} }
} }

View File

@@ -233,9 +233,7 @@ DynamicWidget::stationFailed( const QString& msg )
{ {
m_view->showMessage( msg ); m_view->showMessage( msg );
if( m_runningOnDemand ) { stopStation( false );
stopStation( false );
}
} }