1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 22:56:42 +02:00

Pointer safety (Oops #20003)

This commit is contained in:
Leo Franchi
2012-07-17 17:08:28 -04:00
parent 33ca71a86a
commit 2a19f20914

View File

@@ -312,12 +312,12 @@ ContextMenu::onSocialActionsLoaded()
if ( m_queries.isEmpty() || m_queries.first().isNull() )
return;
if ( m_queries.first()->loved() )
if ( m_loveAction && m_queries.first()->loved() )
{
m_loveAction->setText( tr( "Un-&Love" ) );
m_loveAction->setIcon( QIcon( RESPATH "images/not-loved.png" ) );
}
else
else if ( m_loveAction )
{
m_loveAction->setText( tr( "&Love" ) );
m_loveAction->setIcon( QIcon( RESPATH "images/loved.png" ) );