Diffusion Krita 68ca0a9afba1

Wrap the undo commands in a QPointer

Authored by rempt on Sep 19 2016, 11:09 AM.

Description

Wrap the undo commands in a QPointer

This should fix the problems when trying to merge already deleted
commands in the timedMergeWith method, because now we can track
whether the QObject-based KUndo2Command instances have been deleted
behind our back.

BUG:366607