Mercurial > hg > svcore
diff data/model/ImageModel.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/ImageModel.h Wed Jun 26 17:25:20 2019 +0100 +++ b/data/model/ImageModel.h Thu Jun 27 13:08:10 2019 +0100 @@ -231,8 +231,7 @@ case 3: 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();