Skip to content

Commit

Permalink
Bug 2215: Cut does not work when in pause mode
Browse files Browse the repository at this point in the history
Minor fix to logic required.
  • Loading branch information
DavidBailes committed Sep 23, 2019
1 parent cabe925 commit 6a37cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 6a37cba

Please sign in to comment.