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 crash inserting a non AV clip in timeline

Make disabled clips grey
parent 9fdb58f8
......@@ -699,7 +699,7 @@ bool TimelineModel::requestClipInsertion(const QString &binClipId, int trackId,
}
}
} else {
std::shared_ptr<ProjectClip> binClip = pCore->projectItemModel()->getClipByBinID(binClipId);
std::shared_ptr<ProjectClip> binClip = pCore->projectItemModel()->getClipByBinID(bid);
res = requestClipCreation(binClipId, id, binClip->defaultState(), local_undo, local_redo);
res = res && requestClipMove(id, trackId, position, refreshView, logUndo, local_undo, local_redo);
}
......
......@@ -170,6 +170,9 @@ Rectangle {
opacity: Drag.active? 0.5 : 1.0
function getColor() {
if (clipStatus == ClipState.Disabled) {
return 'grey'
}
if (mltService === 'color') {
var color = clipResource.substring(clipResource.length - 9)
if (color[0] == '#') {
......@@ -377,7 +380,7 @@ Rectangle {
Row {
id: waveform
visible: parentTrack.isAudio && timeline.showAudioThumbnails && !parentTrack.isMute
visible: clipStatus != ClipState.VideoOnly && parentTrack.isAudio && timeline.showAudioThumbnails && !parentTrack.isMute
height: isAudio || parentTrack.isAudio || clipStatus == ClipState.AudioOnly ? container.height - 1 : (container.height - 1) / 2
opacity: clipStatus == ClipState.Disabled ? 0.2 : 1
anchors.left: container.left
......
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