Suppress delete confirmation dialog on undo/redo
When a permanent delete is performed, a confirmation dialog is displayed to the user. This dialog is also presented when a delete is triggered by an undo/redo operation. We should suppress this dialog in that case however, since the file can be retrieved by just performing a redo/undo, and the dialog just gets in the way.
See #819 (closed)