1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 07:36:48 +02:00

* Style fixes in GenericPageItems.

This commit is contained in:
Christian Muehlhaeuser
2013-06-13 10:25:04 +02:00
parent fc4ab3a262
commit 1fdd485207

View File

@@ -82,6 +82,7 @@ GenericPageItem::setText( const QString &text )
emit updated();
}
bool
GenericPageItem::isBeingPlayed() const
{
@@ -90,10 +91,10 @@ GenericPageItem::isBeingPlayed() const
if ( m_get()->isBeingPlayed() )
return true;
if ( !m_get()->playlistInterface().isNull() && m_get()->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
if ( m_get()->playlistInterface() && m_get()->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
return true;
if ( !m_get()->playlistInterface().isNull() && m_get()->playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
if ( m_get()->playlistInterface() && m_get()->playlistInterface()->hasChildInterface( AudioEngine::instance()->currentTrackPlaylist() ) )
return true;
}