mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
* Don't assume the current track of a remote source is always resolveable.
This commit is contained in:
parent
7b89460aa1
commit
fc9a36e28e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user