mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +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_gotNextItem = false;
|
||||||
|
|
||||||
|
if ( m_source.data()->currentTrack()->numResults() )
|
||||||
m_currentItem = m_source.data()->currentTrack()->results().first();
|
m_currentItem = m_source.data()->currentTrack()->results().first();
|
||||||
|
else
|
||||||
|
m_currentItem = result_ptr();
|
||||||
|
|
||||||
return m_currentItem;
|
return m_currentItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user