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
21cd56af
Commit
21cd56af
authored
Oct 26, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix crash in effect stack on spacer. Fixes #408
parent
107db117
Pipeline
#9486
failed with stage
in 5 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/effects/effectstack/view/collapsibleeffectview.cpp
View file @
21cd56af
...
...
@@ -91,6 +91,7 @@ CollapsibleEffectView::CollapsibleEffectView(const std::shared_ptr<EffectItemMod
m_collapse
=
new
KDualAction
(
i18n
(
"Collapse Effect"
),
i18n
(
"Expand Effect"
),
this
);
m_collapse
->
setActiveIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"arrow-right"
)));
collapseButton
->
setDefaultAction
(
m_collapse
);
m_collapse
->
setActive
(
m_model
->
isCollapsed
());
connect
(
m_collapse
,
&
KDualAction
::
activeChanged
,
this
,
&
CollapsibleEffectView
::
slotSwitch
);
if
(
effectModel
->
rowCount
()
==
0
)
{
// Effect has no paramerter
...
...
@@ -209,8 +210,10 @@ CollapsibleEffectView::CollapsibleEffectView(const std::shared_ptr<EffectItemMod
cb
->
installEventFilter
(
this
);
cb
->
setFocusPolicy
(
Qt
::
StrongFocus
);
}
m_collapse
->
setActive
(
m_model
->
isCollapsed
());
QMetaObject
::
invokeMethod
(
this
,
"slotSwitch"
,
Qt
::
QueuedConnection
,
Q_ARG
(
bool
,
m_model
->
isCollapsed
()));
if
(
m_model
->
isCollapsed
())
{
widgetFrame
->
setFixedHeight
(
0
);
setFixedHeight
(
widgetFrame
->
height
()
+
frame
->
minimumHeight
()
+
2
*
(
contentsMargins
().
top
()
+
decoframe
->
lineWidth
()));
}
}
CollapsibleEffectView
::~
CollapsibleEffectView
()
...
...
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