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:
@@ -492,9 +492,10 @@ AudioEngine::setPlaylist( PlaylistInterface* playlist )
|
|||||||
{
|
{
|
||||||
if ( m_playlist )
|
if ( m_playlist )
|
||||||
m_playlist->reset();
|
m_playlist->reset();
|
||||||
|
|
||||||
m_playlist = playlist;
|
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() ) );
|
connect( m_playlist->object(), SIGNAL( nextTrackReady() ), SLOT( playlistNextTrackReady() ) );
|
||||||
|
|
||||||
emit playlistChanged( playlist );
|
emit playlistChanged( playlist );
|
||||||
|
Reference in New Issue
Block a user