summaryrefslogtreecommitdiff
path: root/muse2/muse/arranger
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-07-28 17:11:30 +0000
committerFlorian Jung <flo@windfisch.org>2011-07-28 17:11:30 +0000
commitdea19421318fdef6cc0f3d9bbfae29c5470361a3 (patch)
tree6e55933756a7cd374492b2e4bcfa948cd48d823f /muse2/muse/arranger
parentedf44d278da25cb159024fc60596b76bec227924 (diff)
speeded up structural operations
fixed several heavy bugs in structural operations: - global insert freezed muse - global cut and global insert behaved wrong on parts not starting at the zeroth tick - fixed upper_bound vs. lower_bound issues clicking below the track list now deselects all tracks moved checkRegionNotNull() where it belongs
Diffstat (limited to 'muse2/muse/arranger')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp4
-rw-r--r--muse2/muse/arranger/tlist.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp
index 96c30fdb..1f25d6cc 100644
--- a/muse2/muse/arranger/pcanvas.cpp
+++ b/muse2/muse/arranger/pcanvas.cpp
@@ -374,13 +374,13 @@ UndoOp PartCanvas::moveItem(CItem* item, const QPoint& newpos, DragType t)
if (t == MOVE_COPY || t == MOVE_CLONE) {
// These will not increment ref count, and will not chain clones...
- // TODO: is this still correct (by flo93)?
+ // TODO FINDMICH: is this still correct (by flo93)? i doubt it!
result=UndoOp(UndoOp::AddPart,dpart);
}
else if (t == MOVE_MOVE) {
dpart->setSelected(spart->selected());
// These will increment ref count if not a clone, and will chain clones...
- // TODO: is this still correct (by flo93)?
+ // TODO FINDMICH: is this still correct (by flo93)? i doubt it!
result=UndoOp(UndoOp::ModifyPart,spart, dpart, true, false);
spart->setSelected(false);
diff --git a/muse2/muse/arranger/tlist.cpp b/muse2/muse/arranger/tlist.cpp
index 4f050c46..d7cda62f 100644
--- a/muse2/muse/arranger/tlist.cpp
+++ b/muse2/muse/arranger/tlist.cpp
@@ -1069,6 +1069,9 @@ void TList::mousePressEvent(QMouseEvent* ev)
//delete synp;
delete p;
}
+ else if (button == Qt::LeftButton) {
+ if (!ctrl) song->deselectTracks();
+ }
return;
}