mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Clean up error and info display a little bit
This commit is contained in:
@@ -181,6 +181,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
|||||||
|
|
||||||
QLabel* match = new QLabel( tr( "similar to" ) );
|
QLabel* match = new QLabel( tr( "similar to" ) );
|
||||||
QLineEdit* input = new QLineEdit();
|
QLineEdit* input = new QLineEdit();
|
||||||
|
input->setPlaceholderText( "Enter any combination of song name and artist here..." );
|
||||||
|
|
||||||
m_matchString = QString();
|
m_matchString = QString();
|
||||||
m_matchData = QString::number( (int)Echonest::DynamicPlaylist::SongRadioType );
|
m_matchData = QString::number( (int)Echonest::DynamicPlaylist::SongRadioType );
|
||||||
|
@@ -349,7 +349,7 @@ EchonestGenerator::onlyThisArtistType( Echonest::DynamicPlaylist::ArtistTypeEnum
|
|||||||
if( some && only ) {
|
if( some && only ) {
|
||||||
return true;
|
return true;
|
||||||
} else if( some && !only ) {
|
} else if( some && !only ) {
|
||||||
throw std::runtime_error( "All artist match types must be the same" );
|
throw std::runtime_error( "All artist and song match types must be the same" );
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user