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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user