mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 08:30: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) {
|
while ((flags & flagsRqd) != flagsRqd && iter != end) {
|
||||||
const auto &enabler = *iter;
|
const auto &enabler = *iter;
|
||||||
auto actual = enabler.actualFlags();
|
auto actual = enabler.actualFlags();
|
||||||
auto possible = enabler.possibleFlags();
|
|
||||||
auto MissingFlags = (~flags & flagsRqd);
|
auto MissingFlags = (~flags & flagsRqd);
|
||||||
if (
|
if (
|
||||||
// Do we have the right precondition?
|
// Do we have the right precondition?
|
||||||
(flags & actual) == actual
|
(flags & actual) == actual
|
||||||
&&
|
&&
|
||||||
// Can we get the condition we need?
|
// Can we get the condition we need?
|
||||||
(MissingFlags & possible) == possible
|
(MissingFlags & enabler.possibleFlags()) == MissingFlags
|
||||||
) {
|
) {
|
||||||
// Then try the function
|
// Then try the function
|
||||||
enabler.tryEnable( project, flagsRqd );
|
enabler.tryEnable( project, flagsRqd );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user