creator: When deleting an object, save the parent before removing
creator: When deleting an object, save the parent before removing

Otherwise we create a delete command with a null parent (since we just
removed the child from its parent) which causes crashes.

KDE/gluon,KDE/gluon,KDE/gluon,KDE/gluon