TCanvas crash on right click

I’ve written a GUI macro where if I click on the histogram objects on the canvas, I can alter their properties. The macro runs really well until I try to stretch the axis or do any operation that has to do with “right click”, the application immediately crashes, I am not sure where is the problem because I’ve assigned a slot onto an event for a mouse click.

Hi,

do you manage to reduce the issue to a minimal program?

Cheers,
D