mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Be more consistent when enabling the prev/next buttons.
This commit is contained in:
@@ -191,6 +191,9 @@ PlayableProxyModelPlaylistInterface::siblingIndex( int itemsAway, qint64 rootInd
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( !proxyModel->currentIndex().isValid() )
|
||||
return -1;
|
||||
|
||||
// random mode is enabled
|
||||
if ( m_shuffleCache.isValid() )
|
||||
{
|
||||
@@ -252,6 +255,9 @@ PlayableProxyModelPlaylistInterface::siblingIndex( int itemsAway, qint64 rootInd
|
||||
|
||||
if ( !idx.isValid() && m_repeatMode == PlaylistModes::RepeatAll )
|
||||
{
|
||||
if ( !proxyModel->currentIndex().isValid() )
|
||||
return -1;
|
||||
|
||||
// repeat all tracks
|
||||
if ( itemsAway > 0 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user