Commit a15c8413 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 ebaf8d94
......@@ -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()) {
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