From a7e356793f8966cfb926188c57e21250072f7344 Mon Sep 17 00:00:00 2001 From: Alberto Ramos Date: Thu, 7 Jul 2011 03:06:19 -0600 Subject: [PATCH] can someone look for a workaround for this please? --- src/MusicWheel.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/MusicWheel.cpp b/src/MusicWheel.cpp index 5c7d9a6b6b..47394c8eef 100644 --- a/src/MusicWheel.cpp +++ b/src/MusicWheel.cpp @@ -1405,8 +1405,12 @@ RString MusicWheel::JumpToNextGroup() for(unsigned i = 0 ; i < iNumGroups ; i++) { - if( m_sExpandedSectionName == SONGMAN->GetSongGroupByIndex(i) ) + RString sCurSongGroup = SONGMAN->GetSongGroupByIndex(i); + + if( m_sExpandedSectionName == sCurSongGroup ) { + if( SONGMAN->GetSongsOfCurrentGame(sCurSongGroup).size() == 0 ) continue; + if ( i < iNumGroups - 1 ) return SONGMAN->GetSongGroupByIndex(i+1); else @@ -1451,8 +1455,12 @@ RString MusicWheel::JumpToPrevGroup() for(unsigned i = 0 ; i < iNumGroups ; i++) { - if( m_sExpandedSectionName == SONGMAN->GetSongGroupByIndex(i) ) + RString sCurSongGroup = SONGMAN->GetSongGroupByIndex(i); + + if( m_sExpandedSectionName == sCurSongGroup ) { + if( SONGMAN->GetSongsOfCurrentGame(sCurSongGroup).size() == 0 ) continue; + if ( i > 0 ) return SONGMAN->GetSongGroupByIndex(i-1); else