mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
Only update to valid Playlist index
This commit is contained in:
parent
f0ea99fc71
commit
69fc54024f
@ -61,9 +61,11 @@ AlbumPlaylistInterface::~AlbumPlaylistInterface()
|
||||
void
|
||||
AlbumPlaylistInterface::setCurrentIndex( qint64 index )
|
||||
{
|
||||
PlaylistInterface::setCurrentIndex( index );
|
||||
if ( index < m_queries.size() && !m_queries.at( index ).isNull() && m_queries.at( index )->results().size() > 0 ) {
|
||||
PlaylistInterface::setCurrentIndex( index );
|
||||
|
||||
m_currentItem = m_queries.at( index )->results().first();
|
||||
m_currentItem = m_queries.at( index )->results().first();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user