Commit cec15055 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Remove an assert in KisToolInvocationAction

It may be triggered when opening the very first document in Krita

BACKPORT:krita/4.2
parent 04538329
......@@ -86,7 +86,10 @@ void KisToolInvocationAction::deactivate(int shortcut)
Q_UNUSED(shortcut);
if (!inputManager()) return;
KIS_SAFE_ASSERT_RECOVER_NOOP(d->activatedToolProxy);
/**
* Activate call might ave come before actual input manager or tool proxy
* was attached. So we may end up wil null activatedToolProxy.
*/
if (d->activatedToolProxy) {
d->activatedToolProxy->deactivateToolAction(KisTool::Primary);
d->activatedToolProxy.clear();
......
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