mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-17 09:07:41 +02:00
Bug 2215: Cut does not work when in pause mode
Minor fix to logic required.
This commit is contained in:
parent
cabe925ab7
commit
6a37cbae35
@ -655,13 +655,14 @@ bool MenuManager::TryToMakeActionAllowed(
|
||||
while ((flags & flagsRqd) != flagsRqd && iter != end) {
|
||||
const auto &enabler = *iter;
|
||||
auto actual = enabler.actualFlags();
|
||||
auto possible = enabler.possibleFlags();
|
||||
auto MissingFlags = (~flags & flagsRqd);
|
||||
if (
|
||||
// Do we have the right precondition?
|
||||
(flags & actual) == actual
|
||||
&&
|
||||
// Can we get the condition we need?
|
||||
(MissingFlags & enabler.possibleFlags()) == MissingFlags
|
||||
(MissingFlags & possible) == possible
|
||||
) {
|
||||
// Then try the function
|
||||
enabler.tryEnable( project, flagsRqd );
|
||||
|
Loading…
x
Reference in New Issue
Block a user