--- a/zz_setContentsDialog.cpp Wed Apr 17 14:09:38 2013 +0300 +++ b/zz_setContentsDialog.cpp Fri Apr 19 15:21:46 2013 +0300 @@ -97,8 +97,8 @@ // Mark down the history now before we perform the replacement (which // destroys the old object) - History::addEntry (new SetContentsHistory (oldobj->getIndex (g_CurrentFile), - oldobj->clone (), obj->clone ())); + History::addEntry (new EditHistory ({oldobj->getIndex (g_CurrentFile)}, + {oldobj->clone ()}, {obj->clone ()})); oldobj->replace (obj);