Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
a15c8413
Commit
a15c8413
authored
Dec 17, 2020
by
Jean-Baptiste Mardelle
Browse files
Automatically update title clip name when we edit a duplicate title
Related to
#320
parent
ebaf8d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
a15c8413
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment