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