1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-26 22:51:21 +01:00

Smarter SelectAllIfNone

Now if there is a time selection and no tracks selected, then just select all the tracks, preserving the time selection.
This helps in the case a user has made a time selection, e.g. with selection toolbar, and then clicked on track panel, losing the selection of tracks but preserving the time selection.

I also shortened some repeated cut-and-pasted code.
This commit is contained in:
James Crook
2017-05-11 22:36:55 +01:00
parent ddb8db8dd7
commit 35fe313f30
3 changed files with 35 additions and 36 deletions

View File

@@ -276,6 +276,7 @@ void OnJoinLabels();
void OnDisjoinLabels();
void OnSelectAll();
void OnSelectSomething();
void OnSelectNone();
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
void OnToggleSpectralSelection();