1
0
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:
David Bailes 2019-09-23 12:31:05 +01:00
parent cabe925ab7
commit 6a37cbae35

View File

@ -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 );