mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-18 08:48:17 +01:00
Disallow AutoSelect on dangerous commands.
Commands flagged with NoAutoSelect will not auto select, even if the user has asked for it. This is used for Cut and 3 different kinds of delete. We later might extend it to fades and repair.
This commit is contained in:
@@ -2327,6 +2327,10 @@ bool AudacityProject::TryToMakeActionAllowed
|
||||
if( mWhatIfNoSelection != 1 )
|
||||
return false;
|
||||
|
||||
// Some effects disallow autoselection.
|
||||
if( flagsRqd & NoAutoSelect )
|
||||
return false;
|
||||
|
||||
// Why is action still not allowed?
|
||||
// 0's wherever a required flag is missing (or is don't care)
|
||||
MissingFlags = (flags & ~flagsRqd) & mask;
|
||||
|
||||
Reference in New Issue
Block a user