From: Jean-Baptiste Mardelle Date: Sun, 30 Sep 2012 15:34:55 +0000 (+0200) Subject: Do not allow resizing in locked tracks: http://kdenlive.org/mantis/view.php?id=2763 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c8f1395bba94dd8e3b651aaef359e7de23cb4e67;p=kdenlive Do not allow resizing in locked tracks: http://kdenlive.org/mantis/view.php?id=2763 --- diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index 9ed99e8d..3d4ac7ef 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -5901,7 +5901,8 @@ ClipItem *CustomTrackView::getClipUnderCursor() const QList collisions = scene()->items(rect, Qt::IntersectsItemBoundingRect); for (int i = 0; i < collisions.count(); i++) { if (collisions.at(i)->type() == AVWIDGET) { - return static_cast < ClipItem *>(collisions.at(i)); + ClipItem *clip = static_cast < ClipItem *>(collisions.at(i)); + if (!clip->isItemLocked()) return clip; } } return NULL;