mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +02:00
Only update to valid Playlist index
This commit is contained in:
@@ -61,10 +61,12 @@ AlbumPlaylistInterface::~AlbumPlaylistInterface()
|
||||
void
|
||||
AlbumPlaylistInterface::setCurrentIndex( qint64 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
qint64
|
||||
|
Reference in New Issue
Block a user