mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Revert "Bug 2215: Cut does not work when in pause mode"
This reverts commit 6a37cbae35da95b45f88d310a65b23064f3ed117. This was reverted because it caused bug 2221.
This commit is contained in:
parent
6a37cbae35
commit
6b2785b625
@ -655,14 +655,13 @@ 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 & possible) == possible
|
||||
(MissingFlags & enabler.possibleFlags()) == MissingFlags
|
||||
) {
|
||||
// Then try the function
|
||||
enabler.tryEnable( project, flagsRqd );
|
||||
|
Loading…
x
Reference in New Issue
Block a user