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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -233,9 +233,7 @@ DynamicWidget::stationFailed( const QString& msg )
|
|||||||
{
|
{
|
||||||
m_view->showMessage( msg );
|
m_view->showMessage( msg );
|
||||||
|
|
||||||
if( m_runningOnDemand ) {
|
|
||||||
stopStation( false );
|
stopStation( false );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user