--- a/src/addObjectDialog.cc Wed Dec 18 17:03:35 2013 +0200 +++ b/src/addObjectDialog.cc Wed Dec 18 17:44:31 2013 +0200 @@ -243,7 +243,7 @@ setWindowTitle (fmt (tr ("Edit %1"), typeName)); setWindowIcon (icon); - delete defaults; + defaults->deleteSelf(); } // =============================================================================