diff data/model/SparseOneDimensionalModel.h @ 1741:9d82b164f264 by-id

Work on commands, and some other model updates
author Chris Cannam
date Thu, 27 Jun 2019 13:08:10 +0100
parents 78fe29adfd16
children 52705a328b34
line wrap: on
line diff
--- a/data/model/SparseOneDimensionalModel.h	Wed Jun 26 17:25:20 2019 +0100
+++ b/data/model/SparseOneDimensionalModel.h	Thu Jun 27 13:08:10 2019 +0100
@@ -239,8 +239,7 @@
         case 2: e1 = e0.withLabel(value.toString()); break;
         }
 
-        ChangeEventsCommand *command =
-            new ChangeEventsCommand(this, tr("Edit Data"));
+        auto command = new ChangeEventsCommand<Model>(getId(), tr("Edit Data"));
         command->remove(e0);
         command->add(e1);
         return command->finish();