Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix clip resize corrupting producer (also breaking thumbnails)

parent ce478206
......@@ -121,7 +121,7 @@ bool ClipModel::requestResize(int size, bool right, Fun& undo, Fun& redo)
}
auto operation = [this, in, out, track_operation]() {
if (track_operation()) {
m_producer.reset(m_producer->cut(in, out));
m_producer->set_in_and_out(in, out);
return true;
}
return false;
......@@ -134,7 +134,7 @@ bool ClipModel::requestResize(int size, bool right, Fun& undo, Fun& redo)
}
auto reverse = [this, old_in, old_out, track_reverse]() {
if (track_reverse()) {
m_producer.reset(m_producer->cut(old_in, old_out));
m_producer->set_in_and_out(old_in, old_out);
return true;
}
return false;
......
......@@ -556,8 +556,10 @@ Rectangle {
if (mouse.buttons === Qt.LeftButton) {
clipRoot.draggedX = mapToItem(null, x, y).x
var delta = Math.round((draggedX - originalX) / timeScale)
var newDuration = clipRoot.clipDuration - delta
clipRoot.trimmingIn(clipRoot, newDuration, mouse)
if (delta !== 0) {
var newDuration = clipRoot.clipDuration - delta
clipRoot.trimmingIn(clipRoot, newDuration, mouse)
}
}
}
onEntered: parent.opacity = 0.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment