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

* Guard AudioEngine against null-ptr PlaylistInterfaces.

This commit is contained in:
Christian Muehlhaeuser
2011-06-24 05:46:08 +02:00
parent 251599e36e
commit b65d9d5809

View File

@@ -492,9 +492,10 @@ AudioEngine::setPlaylist( PlaylistInterface* playlist )
{
if ( m_playlist )
m_playlist->reset();
m_playlist = playlist;
if ( m_playlist->retryMode() == PlaylistInterface::Retry )
if ( m_playlist && m_playlist->retryMode() == PlaylistInterface::Retry )
connect( m_playlist->object(), SIGNAL( nextTrackReady() ), SLOT( playlistNextTrackReady() ) );
emit playlistChanged( playlist );