--- a/src/lddocument.cpp Fri Dec 28 00:03:47 2018 +0200 +++ b/src/lddocument.cpp Thu Jun 20 08:54:35 2019 +0300 @@ -37,15 +37,6 @@ this, SLOT(handleNewObject(QModelIndex)) ); - - connect( - this, - &Model::rowsMoved, - [&](const QModelIndex&, int start, int end, const QModelIndex&, int row) - { - history()->add<MoveHistoryEntry>(start, end, row); - } - ); connect( this, SIGNAL(aboutToRemoveObject(QModelIndex)), @@ -386,7 +377,7 @@ return true; } -void LDDocument::handleNewObject(const QModelIndex& index) +void LDDocument::handleNewObject(const Uuid& index) { LDObject* object = lookup(index); history()->add<AddHistoryEntry>(index); @@ -408,11 +399,10 @@ history()->add<EditHistoryEntry>(index, before, after); redoVertices(); emit objectModified(object); - emit dataChanged(index, index); } } -void LDDocument::handleImminentObjectRemoval(const QModelIndex& index) +void LDDocument::handleImminentObjectRemoval(const Uuid& index) { LDObject* object = lookup(index);