1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

* Don't assume the current track of a remote source is always resolveable.

This commit is contained in:
Christian Muehlhaeuser
2012-05-05 16:38:19 +02:00
parent 7b89460aa1
commit fc9a36e28e

View File

@@ -75,7 +75,12 @@ SourcePlaylistInterface::nextItem()
}
m_gotNextItem = false;
m_currentItem = m_source.data()->currentTrack()->results().first();
if ( m_source.data()->currentTrack()->numResults() )
m_currentItem = m_source.data()->currentTrack()->results().first();
else
m_currentItem = result_ptr();
return m_currentItem;
}