We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0466e0c commit 63ce071Copy full SHA for 63ce071
src/engraving/api/v1/score.cpp
@@ -248,6 +248,9 @@ void Score::startCmd(const QString& qActionName)
248
: TranslatableString::untranslatable(qActionName);
249
250
undoStack()->prepareChanges(actionName);
251
+ // Lock the undo stack, so that all changes made by the plugin,
252
+ // including PluginAPI::cmd(), are committed as a single command.
253
+ undoStack()->lock();
254
}
255
256
void Score::endCmd(bool rollback)
@@ -256,6 +259,8 @@ void Score::endCmd(bool rollback)
259
return;
257
260
258
261
262
+ undoStack()->unlock();
263
+
264
if (rollback) {
265
undoStack()->rollbackChanges();
266
} else {
0 commit comments