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
fadbbf97
Commit
fadbbf97
authored
Nov 29, 2020
by
Jean-Baptiste Mardelle
Browse files
Ensure we cannot create invalid subtitles (with empty lines)
parent
8fe8439b
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/blacklisted_effects.txt
View file @
fadbbf97
...
...
@@ -238,7 +238,6 @@ avfilter.perspective
avfilter.pseudocolor
avfilter.rotate
avfilter.shuffleframes
avfilter.subtitles
avfilter.swaprect
avfilter.tlut2
avfilter.vignette
...
...
src/dialogs/subtitleedit.cpp
View file @
fadbbf97
...
...
@@ -170,7 +170,9 @@ void SubtitleEdit::setModel(std::shared_ptr<SubtitleModel> model)
void
SubtitleEdit
::
updateSubtitle
()
{
if
(
m_activeSub
>
-
1
&&
m_model
)
{
m_model
->
setText
(
m_activeSub
,
subText
->
toPlainText
());
QString
txt
=
subText
->
toPlainText
().
trimmed
();
txt
.
replace
(
QLatin1String
(
"
\n\n
"
),
QStringLiteral
(
"
\n
"
));
m_model
->
setText
(
m_activeSub
,
txt
);
}
}
...
...
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