mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-19 14:17:41 +02:00
Bug 2215 - Cut does not work when in Pause mode
In bool MenuManager::TryToMakeActionAllowed(), there's the condition: (MissingFlags & enabler.possibleFlags()) == Missing that is, the missing flags has to be a subset of the possible flags. For cut in pause mode, this condition is not met for the enabler stopIfPaused, because MissingFlags also includes the CutCopyAvailableFlag, which is not one of the enabler's possible flags. It is not sensible for the missing flags to have to be a subset of the possible flags, because for this to work, for each enabler the possible flags would have to include other flags that could need fixing by other enablers. Fix: change the condition to the intersection of the missing flags and possible flags is non-empty.
This commit is contained in:
parent
6b2785b625
commit
458d92157a
@ -661,7 +661,7 @@ bool MenuManager::TryToMakeActionAllowed(
|
||||
(flags & actual) == actual
|
||||
&&
|
||||
// Can we get the condition we need?
|
||||
(MissingFlags & enabler.possibleFlags()) == MissingFlags
|
||||
(MissingFlags & enabler.possibleFlags()).any()
|
||||
) {
|
||||
// Then try the function
|
||||
enabler.tryEnable( project, flagsRqd );
|
||||
|
Loading…
x
Reference in New Issue
Block a user