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