1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-18 17:47:41 +02:00

Don't count note tracks (MIDI) as audio in auto-select.

This commit is contained in:
James Crook 2019-03-30 11:42:29 +00:00
parent 09dab612fe
commit 939bbc95a2

View File

@ -41,7 +41,7 @@ void DoSelectTimeAndTracks
}
// Temporal selection (not TimeTrack selection)
// potentially for all wave or not tracks.
// potentially for all wave tracks.
void DoSelectTimeAndAudioTracks
(AudacityProject &project, bool bAllTime, bool bAllTracks)
{
@ -56,8 +56,7 @@ void DoSelectTimeAndAudioTracks
if( bAllTracks ) {
for (auto t : tracks->Any()){
auto wt = dynamic_cast<WaveTrack *>(t);
auto nt = dynamic_cast<NoteTrack *>(t);
if( wt || nt )
if( wt )
t->SetSelected(true);
}