Diffusion Krita 4622b00348ce

Fix crash in move tool after closing the document

Authored by dkazakov on May 23 2019, 3:50 PM.

Description

Fix crash in move tool after closing the document

We shouldn't use lambda functions in signal connection if we need
to control lifetime of the connection. In this very case, the connection
was still active after destruciton of KisToolMove and lambda still stored
a pointer to destroyed 'this'.

BUG:407228
BACKPORT:krita/4.2