Commit 6d2d09cc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix freeze on multiple title clip duplication.

BUG: 443507
parent 41b5ebc0
......@@ -579,6 +579,7 @@ TextBasedEdit::TextBasedEdit(QWidget *parent)
button_insert->setEnabled(hasSelection);
});
button_start->setEnabled(false);
connect(button_start, &QPushButton::clicked, this, &TextBasedEdit::startRecognition);
frame_progress->setVisible(false);
button_abort->setIcon(QIcon::fromTheme(QStringLiteral("process-stop")));
......@@ -1151,7 +1152,7 @@ void TextBasedEdit::openClip(std::shared_ptr<ProjectClip> clip)
// TODO: ask for job cancelation
return;
}
if (clip) {
if (clip && clip->isValid() && clip->hasAudio()) {
QString refId = clip->getProducerProperty(QStringLiteral("kdenlive:baseid"));
if (!refId.isEmpty() && refId == m_refId) {
// We opened a resulting playlist, do not clear text edit
......@@ -1184,6 +1185,10 @@ void TextBasedEdit::openClip(std::shared_ptr<ProjectClip> clip)
}
m_visualEditor->rebuildZones();
button_add->setEnabled(!speech.isEmpty());
button_start->setEnabled(true);
} else {
button_start->setEnabled(false);
clipNameLabel->clear();
}
}
......
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