Skip to content

Commit

Permalink
don't allow starting on playlist song groups when selecting songs...
Browse files Browse the repository at this point in the history
this may have awkward consequences, though less awkward than the ones not doing this has for sure
  • Loading branch information
MinaciousGrace committed Jun 15, 2017
1 parent f06bffb commit c5463c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/MusicWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,14 @@ bool MusicWheel::SelectSong( const Song *p )

unsigned i;
vector<MusicWheelItemData *> &from = getWheelItemsData(GAMESTATE->m_SortOrder);
for( i=0; i<from.size(); i++ )
{
if( from[i]->m_pSong == p )
{
for( i=0; i<from.size(); i++ ) {
if( from[i]->m_pSong == p ) {
// make its group the currently expanded group
SetOpenSection( from[i]->m_sText );
break;

// skip any playlist groups
if (!SONGMAN->allplaylists.count(GetExpandedSectionName()))
break;
}
}

Expand Down

0 comments on commit c5463c9

Please sign in to comment.