Skip to content
GitLab
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
99615c39
Commit
99615c39
authored
Apr 01, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash on timeline clip deletion
parent
dbc97f19
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/effects/effectstack/view/effectstackview.cpp
View file @
99615c39
...
...
@@ -265,7 +265,10 @@ void EffectStackView::loadEffects()
void
EffectStackView
::
updateTreeHeight
()
{
// For some reason, the treeview height does not update correctly, so enforce it
m_mutex
.
lock
();
QMutexLocker
lk
(
&
m_mutex
);
if
(
!
m_model
)
{
return
;
}
int
totalHeight
=
0
;
for
(
int
j
=
0
;
j
<
m_model
->
rowCount
();
j
++
)
{
std
::
shared_ptr
<
AbstractEffectItem
>
item2
=
m_model
->
getEffectStackRow
(
j
);
...
...
@@ -277,7 +280,6 @@ void EffectStackView::updateTreeHeight()
}
}
m_effectsTree
->
setFixedHeight
(
totalHeight
);
m_mutex
.
unlock
();
m_scrollTimer
.
start
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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