From 939bbc95a245f2134257abc8e29e8c6f0d66bcc3 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sat, 30 Mar 2019 11:42:29 +0000 Subject: [PATCH] Don't count note tracks (MIDI) as audio in auto-select. --- src/menus/SelectMenus.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/menus/SelectMenus.cpp b/src/menus/SelectMenus.cpp index 84bb06669..bd3d924ec 100644 --- a/src/menus/SelectMenus.cpp +++ b/src/menus/SelectMenus.cpp @@ -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(t); - auto nt = dynamic_cast(t); - if( wt || nt ) + if( wt ) t->SetSelected(true); }