Use a QPointer for Partition in DeleteOperation to avoid double-delete.

Authored by teo on Apr 27 2016, 2:41 PM.