Fix some clip jobs incorrectly adding new clip

parent e027cb4c
......@@ -32,7 +32,7 @@ AbstractClipJob::AbstractClipJob(JOBTYPE type, ClipType cType, const QString &id
replaceClip(false),
m_jobStatus(NoJob),
m_clipId(id),
m_addClipToProject(false),
m_addClipToProject(-100),
m_jobProcess(NULL)
{
}
......
......@@ -88,7 +88,7 @@ QHash <ProjectClip *, AbstractClipJob *> FilterJob::prepareJob(QList <ProjectCli
ProjectClip *clip = clips.at(i);
MeltJob *job = new MeltJob(clip->clipType(), clip->clipId(), producerParams, filterParams, consumerParams, extraParams);
job->description = i18n("Reverse clip");
job->setAddClipToProject(true);
job->setAddClipToProject(1);
jobs.insert(clip, job);
}
return jobs;
......@@ -156,7 +156,7 @@ QHash <ProjectClip *, AbstractClipJob *> FilterJob::prepareJob(QList <ProjectCli
extraParams.insert(QStringLiteral("cutscenes"), QStringLiteral("1"));
}
delete d;
for (int i = 0; i < clips.count(); i++) {
// Set clip specific infos
......
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