1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Style fixes.

This commit is contained in:
Christian Muehlhaeuser
2015-04-18 06:02:37 +02:00
parent 84d36f45a2
commit c3702a633d
2 changed files with 5 additions and 12 deletions

View File

@@ -141,7 +141,7 @@ ScriptCommand_AllAlbums::parseAlbumVariantList( const QList< Tomahawk::artist_pt
{ {
QList< Tomahawk::album_ptr > results; QList< Tomahawk::album_ptr > results;
if (artists.length() != 1 && reslist.length() != artists.length()) if ( artists.length() != 1 && reslist.length() != artists.length() )
{ {
tLog() << "artists" << artists.length(); tLog() << "artists" << artists.length();
tLog() << "albums" << reslist.length(); tLog() << "albums" << reslist.length();
@@ -151,7 +151,7 @@ ScriptCommand_AllAlbums::parseAlbumVariantList( const QList< Tomahawk::artist_pt
} }
bool useArtistList = ( artists.length() > 1 ); bool useArtistList = ( artists.length() > 1 );
for( int i=0; i<reslist.length(); i++ ) for( int i = 0; i < reslist.length(); i++ )
{ {
const QString val = reslist[ i ].toString(); const QString val = reslist[ i ].toString();
if ( val.trimmed().isEmpty() ) if ( val.trimmed().isEmpty() )

View File

@@ -66,14 +66,7 @@ ScriptCommand_AllTracks::exec()
ScriptJob* job; ScriptJob* job;
QVariantMap arguments; if ( m_album )
// TODO: implement filter
// if ( !m_filter.isEmpty() )
// {
// arguments[ "filter" ] = m_filter;
// }
if( m_album )
{ {
arguments[ "artist" ] = m_album->artist()->name(); arguments[ "artist" ] = m_album->artist()->name();
arguments[ "album" ] = m_album->name(); arguments[ "album" ] = m_album->name();
@@ -95,9 +88,9 @@ void
ScriptCommand_AllTracks::reportFailure() ScriptCommand_AllTracks::reportFailure()
{ {
if ( m_album && m_collection ) if ( m_album && m_collection )
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " artist" << m_album->artist()->name() << " album" << m_album->name(); tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "artist" << m_album->artist()->name() << "album" << m_album->name();
else if ( m_collection ) else if ( m_collection )
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " (no more information available)"; tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "(no more information available)";
else else
tDebug() << Q_FUNC_INFO; tDebug() << Q_FUNC_INFO;