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

Pointer safety

This commit is contained in:
Leo Franchi
2012-07-18 11:04:42 -04:00
parent 2a19f20914
commit 70a5050443

View File

@@ -235,6 +235,11 @@ Api_v1::statResult( const QString& clientToken, const QString& name, bool valid
{
Q_UNUSED( clientToken )
Q_UNUSED( name )
Q_ASSERT( m_storedEvent );
if ( !m_storedEvent )
return;
QVariantMap m;
m.insert( "name", "playdar" );
m.insert( "version", "0.1.1" ); // TODO (needs to be >=0.1.1 for JS to work)