1
0
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:
Alejandro Wainzinger 2012-07-18 08:51:08 +09:00
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;