Make KUndo2Stack::push return false if the command was merged (and deleted) rather than pushed
ClosedPublic

Authored by staniek on Feb 28 2016, 4:40 PM.

Details

Summary

This helps to know if the command object can be still accessed after the call.

Backported from kexi.git master.

See also Coverity CID #1354238

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
staniek updated this revision to Diff 2484.Feb 28 2016, 4:40 PM
staniek retitled this revision from to Make KUndo2Stack::push return false if the command was merged (and deleted) rather than pushed.
staniek updated this object.
staniek edited the test plan for this revision. (Show Details)
Restricted Application added projects: KEXI, Calligra: 3.0. · View Herald TranscriptFeb 28 2016, 4:40 PM
aspotashev accepted this revision.Mar 27 2016, 10:58 AM
aspotashev edited edge metadata.

Looks good to me.

P.S. We probably need to share the kundo2 library between Kexi, Krita and Calligra.

This revision is now accepted and ready to land.Mar 27 2016, 10:58 AM
This revision was automatically updated to reflect the committed changes.

Looks good to me.

P.S. We probably need to share the kundo2 library between Kexi, Krita and Calligra.

Thanks Alexander. Yes, this, or we would replace with Qt5 if there's equivalent. Research on that is still a TODO.