1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-19 12:21:52 +02:00

Debug spam for ScriptCommand failure

This commit is contained in:
Teo Mrnjavac
2013-07-05 14:38:53 +02:00
parent 6edc129cb7
commit e27891172a
3 changed files with 7 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ ScriptCommand_AllAlbums::exec()
void
ScriptCommand_AllAlbums::reportFailure()
{
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "and artist" << m_artist->name();
emit albums( QList< Tomahawk::album_ptr >() );
emit done();
}

View File

@@ -22,6 +22,8 @@
#include "ExternalResolver.h"
#include "ScriptCollection.h"
#include "utils/Logger.h"
ScriptCommand_AllArtists::ScriptCommand_AllArtists( const Tomahawk::collection_ptr& collection,
QObject* parent )
: ScriptCommand( parent )
@@ -71,6 +73,7 @@ ScriptCommand_AllArtists::exec()
void
ScriptCommand_AllArtists::reportFailure()
{
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name();
emit artists( QList< Tomahawk::artist_ptr >() );
emit done();
}

View File

@@ -22,6 +22,8 @@
#include "PlaylistEntry.h"
#include "ScriptCollection.h"
#include "utils/Logger.h"
ScriptCommand_AllTracks::ScriptCommand_AllTracks( const Tomahawk::collection_ptr& collection,
const Tomahawk::album_ptr& album,
QObject* parent )
@@ -72,6 +74,7 @@ ScriptCommand_AllTracks::exec()
void
ScriptCommand_AllTracks::reportFailure()
{
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " artist" << m_album->artist()->name() << " album" << m_album->name();
emit tracks( QList< Tomahawk::query_ptr >() );
emit done();
}