Browse Source

Fix crash in RackWidget::pastePresetClipboardAction().

tags/v1.1.2
Andrew Belt 5 years ago
parent
commit
f3bd8baa4a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/app/RackWidget.cpp

+ 4
- 0
src/app/RackWidget.cpp View File

@@ -293,6 +293,10 @@ void RackWidget::pastePresetClipboardAction() {
if (moduleJ) {
ModuleWidget *mw = moduleFromJson(moduleJ);
json_decref(moduleJ);

// Reset ID so the Engine automatically assigns a new one
mw->module->id = -1;

addModuleAtMouse(mw);

// history::ModuleAdd


Loading…
Cancel
Save