Commit fcd64eea authored by Halla Rempt's avatar Halla Rempt
Browse files

BUG:345562 Fix assert in the shortcut matcher system

If we shouldn't arrive in tryEndRunningShortcut if there is a
readyShortcut, check for that condition before calling
parent 664bb1fa
......@@ -197,7 +197,7 @@ bool KisShortcutMatcher::buttonReleased(Qt::MouseButton button, QEvent *event)
return retval;
if (m_d->runningShortcut) {
if (m_d->runningShortcut && !m_d->readyShortcut) {
retval = tryEndRunningShortcut(button, event);
DEBUG_BUTTON_ACTION("ended", button);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment