Fix last commit causing some transition not created on document opening

parent 353fff4e
...@@ -424,9 +424,10 @@ void Timeline::getTransitions() { ...@@ -424,9 +424,10 @@ void Timeline::getTransitions() {
) { ) {
// invalid transition, remove it // invalid transition, remove it
m_documentErrors.append(i18n("Removed invalid transition: %1", prop.get("id")) + '\n'); m_documentErrors.append(i18n("Removed invalid transition: %1", prop.get("id")) + '\n');
mlt_service disconnect = service; mlt_service broken = service;
service = mlt_service_producer(service); service = mlt_service_producer(service);
mlt_field_disconnect_service(field->get_field(), disconnect); mlt_field_disconnect_service(field->get_field(), broken);
continue;
} else { } else {
// Check there is no other transition at that place // Check there is no other transition at that place
double startY = m_trackview->getPositionFromTrack(transitionInfo.track) + 1 + KdenliveSettings::trackheight() / 2; double startY = m_trackview->getPositionFromTrack(transitionInfo.track) + 1 + KdenliveSettings::trackheight() / 2;
...@@ -441,9 +442,10 @@ void Timeline::getTransitions() { ...@@ -441,9 +442,10 @@ void Timeline::getTransitions() {
} }
if (!transitionAccepted) { if (!transitionAccepted) {
m_documentErrors.append(i18n("Removed invalid transition: %1", prop.get("id")) + '\n'); m_documentErrors.append(i18n("Removed invalid transition: %1", prop.get("id")) + '\n');
mlt_service disconnect = service; mlt_service broken = service;
service = mlt_service_producer(service); service = mlt_service_producer(service);
mlt_field_disconnect_service(field->get_field(), disconnect); mlt_field_disconnect_service(field->get_field(), broken);
continue;
} else { } else {
QDomNodeList params = base.elementsByTagName(QStringLiteral("parameter")); QDomNodeList params = base.elementsByTagName(QStringLiteral("parameter"));
for (int i = 0; i < params.count(); ++i) { for (int i = 0; i < params.count(); ++i) {
......
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