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
31259763
Commit
31259763
authored
Nov 27, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix effect stack disabled on start - regression from
4d7d7127
parent
601ebfb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/effects/effectstack/model/effectstackmodel.cpp
View file @
31259763
...
...
@@ -845,7 +845,7 @@ bool EffectStackModel::importEffects(const std::shared_ptr<EffectStackModel> &so
QWriteLocker
locker
(
&
m_lock
);
// TODO: manage fades, keyframes if clips don't have same size / in point
bool
found
=
false
;
bool
effectEnabled
=
false
;
bool
effectEnabled
=
sourceStack
->
rowCount
()
==
0
;
for
(
int
i
=
0
;
i
<
sourceStack
->
rowCount
();
i
++
)
{
auto
item
=
sourceStack
->
getEffectStackRow
(
i
);
// NO undo. this should only be used on project opening
...
...
@@ -875,9 +875,11 @@ void EffectStackModel::importEffects(const std::weak_ptr<Mlt::Service> &service,
{
QWriteLocker
locker
(
&
m_lock
);
m_loadingExisting
=
alreadyExist
;
bool
effectEnabled
=
fals
e
;
bool
effectEnabled
=
tru
e
;
if
(
auto
ptr
=
service
.
lock
())
{
for
(
int
i
=
0
;
i
<
ptr
->
filter_count
();
i
++
)
{
int
max
=
ptr
->
filter_count
();
effectEnabled
=
max
==
0
;
for
(
int
i
=
0
;
i
<
max
;
i
++
)
{
std
::
unique_ptr
<
Mlt
::
Filter
>
filter
(
ptr
->
filter
(
i
));
if
(
filter
->
get_int
(
"internal_added"
)
>
0
)
{
if
(
auto
ms
=
m_masterService
.
lock
())
{
...
...
Write
Preview
Supports
Markdown
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