Diffusion Krita b8870d02392a

Make KisShortcutMatcher be more tolerant to recursive entering

Authored by dkazakov on Jul 30 2019, 2:10 PM.

Description

Make KisShortcutMatcher be more tolerant to recursive entering

Some tools, e.g. text tool, may open a dialog right inside
beginPrimaryAction() callback. It may make KisShortcutMatcher crazy,
because all the modal dialogs have hey own event loop, therefore
the state machine of the shortcuts matcher will be broken.

This patch makes the matcher a bit more tolerant to such faults. It
just manually checks if it is entered more that once, and resets the
action in case a recursion is detected.

BUG:409968
CCBUG:408826,409275

Details

Committed
dkazakovJul 30 2019, 2:16 PM
Parents
R37:30f971a6b1f4: Fix a crash in transform tool caused by wrong copying of ToolTransformArgs
Branches
Unknown
Tags
Unknown