mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
An unsigned int will never be less than 0.
This commit is contained in:
@@ -108,7 +108,7 @@ bool
|
|||||||
AlbumPlaylistInterface::setCurrentTrack( unsigned int albumpos )
|
AlbumPlaylistInterface::setCurrentTrack( unsigned int albumpos )
|
||||||
{
|
{
|
||||||
albumpos--;
|
albumpos--;
|
||||||
if ( albumpos < 0 || albumpos >= m_queries.count() )
|
if ( albumpos >= m_queries.count() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_currentTrack = albumpos;
|
m_currentTrack = albumpos;
|
||||||
|
Reference in New Issue
Block a user