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