From 4ad75075044fc08864f0666e59b6428b50caf4c5 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 12 Sep 2013 18:44:40 +0200 Subject: workaround for Windfisch/muse#13 ("Edit/Copy" not enabled) --- muse2/muse/arranger/pcanvas.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'muse2') diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index 8cd5957c..2c9c0f29 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -499,9 +499,14 @@ void PartCanvas::updateSelection() if (changed) { MusEGlobal::song->applyOperationGroup(operations); - emit selectionChanged(); redraw(); } + + // TODO FIXME: this must be emitted always, because CItem is broken by design: + // CItems hold an Event smart-pointer which allows write access. + // This means, that items can (and will!) be selected bypassing the + // UndoOp::SelectEvent message! FIX THAT! (flo93) + emit selectionChanged(); } //--------------------------------------------------------- -- cgit v1.2.3