T17643 introduced the possibility to delete PlanarFigures in the 4 RenderWindows of the MultiWidget.
Indeed, the PlanarFigure vanishes when pressing <DEL>, but it is NOT deleted!
The DataNode is merely removed from the DataStorage, but neither the DataNode, nor the PlanarFigureInteractor, nor the PlanarFigure itself are actually deleted.
-> It's actually a Memory-Leak!!
What's also quite bad is that this is triggered in the interaction pipeline. So, an event is handled and given to the PlanarFigureInteractor. This interactor removes its DataNode from the DataStorage and thus removes itself from the list of interactors. However, the list of interactors that is currently iterated is supposed to be const!!!
I admit, this seems to work in the workbench environment but in my opinion this is really hacked..
The PlanarFigure or its interactor should not be responsible for deleting the PlanarFigure. In my opinion that's the responsibility of the application, not the dataobject.
Does the workbench have a possibility to define 'global' shortcuts?