Fixed issue that the cursor would disappear if you would fold a group but not have the first track active

This commit is contained in:
Daniel Collin 2013-01-12 23:49:26 +01:00
parent 1d0c7deac4
commit ba63529112

View File

@ -1289,7 +1289,13 @@ static void onFoldGroup(bool fold)
Track* t = &getTrackData()->tracks[getActiveTrack()];
if (t->group->trackCount > 1)
{
TrackViewInfo* viewInfo = getTrackViewInfo();
int firstTrackIndex = t->group->t.tracks[0]->index;
t->group->folded = fold;
setActiveTrack(firstTrackIndex);
viewInfo->selectStartTrack = viewInfo->selectStopTrack = firstTrackIndex;
}
Editor_updateTrackScroll();
}