summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2013-09-12 18:44:40 +0200
committerFlorian Jung <flo@windfisch.org>2013-09-12 18:44:40 +0200
commit4ad75075044fc08864f0666e59b6428b50caf4c5 (patch)
tree4e682a3879f97e139054cd7aa1da01abc1e21255
parent0c795e466729deaf72ec8c067b116ca546fe98b8 (diff)
workaround for Windfisch/muse#13 ("Edit/Copy" not enabled)
-rw-r--r--muse2/muse/arranger/pcanvas.cpp7
1 files changed, 6 insertions, 1 deletions
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();
}
//---------------------------------------------------------