Fix for "delete" action not working with Sf2.2

This is an alternative to #1157 and #1176