1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Fixed crash situation in AudioControls.

This commit is contained in:
Christian Muehlhaeuser 2012-03-17 17:09:57 +01:00
parent ebbedb2b99
commit a2bfd73d55

View File

@ -277,7 +277,7 @@ void
AudioControls::onSocialActionsLoaded()
{
Query* query = qobject_cast< Query* >( sender() );
if ( !query || query != m_currentTrack->toQuery().data() )
if ( !query || !m_currentTrack || query != m_currentTrack->toQuery().data() )
return;
setSocialActions();