mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
fix stopping completely on track error
fix logic error introduced in last commit
This commit is contained in:
@@ -244,9 +244,9 @@ EchonestGenerator::onlyThisArtistType( Echonest::DynamicPlaylist::ArtistTypeEnum
|
||||
bool some = false;
|
||||
|
||||
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;
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
|
@@ -233,9 +233,7 @@ DynamicWidget::stationFailed( const QString& msg )
|
||||
{
|
||||
m_view->showMessage( msg );
|
||||
|
||||
if( m_runningOnDemand ) {
|
||||
stopStation( false );
|
||||
}
|
||||
stopStation( false );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user