summaryrefslogtreecommitdiff
path: root/muse2/muse/midiedit/prcanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/midiedit/prcanvas.cpp')
-rw-r--r--muse2/muse/midiedit/prcanvas.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/muse2/muse/midiedit/prcanvas.cpp b/muse2/muse/midiedit/prcanvas.cpp
index db42be6c..11a142e1 100644
--- a/muse2/muse/midiedit/prcanvas.cpp
+++ b/muse2/muse/midiedit/prcanvas.cpp
@@ -492,8 +492,10 @@ void PianoCanvas::newItem(CItem* item, bool noSnap)
printf("newItem: extending\n");
}
}
- //FINDMICH TODO: forbid action! this is currently wrong!
+ //else forbid action by not applying it
song->applyOperationGroup(operations);
+ songChanged(SC_EVENT_INSERTED); //this forces an update of the itemlist, which is neccessary
+ //to remove "forbidden" events from the list again
}
//---------------------------------------------------------
@@ -533,9 +535,10 @@ void PianoCanvas::resizeItem(CItem* item, bool noSnap, bool) // experime
schedule_resize_all_same_len_clone_parts(part, event.tick()+len, operations);
printf("resizeItem: extending\n");}
}
- //FINDMICH TODO: forbid action! this is currently wrong!
+ //else forbid action by not performing it
song->applyOperationGroup(operations);
-
+ songChanged(SC_EVENT_MODIFIED); //this forces an update of the itemlist, which is neccessary
+ //to remove "forbidden" events from the list again
}
//---------------------------------------------------------