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

Automatically update title clip name when we edit a duplicate title

Related to #320
parent a3e0b15f
......@@ -3707,6 +3707,10 @@ void Bin::showTitleWidget(const std::shared_ptr<ProjectClip> &clip)
newprops.insert(QStringLiteral("kdenlive:duration"), clip->framesToTime(dia_ui.duration()));
if (clip->clipName().contains(i18n("(copy)"))) {
// We edited a duplicated title clip, update name from new content text
newprops.insert(QStringLiteral("kdenlive:clipname"), dia_ui.titleSuggest());
// trigger producer reload
newprops.insert(QStringLiteral("force_reload"), QStringLiteral("2"));
if (!path.isEmpty()) {
  • This is simple yet so very useful for some kind of work! Thank you!

Supports Markdown
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