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
0e833e9c
Commit
0e833e9c
authored
Apr 06, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix crash on project close
Related to
#1019
parent
f5f1c670
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
0e833e9c
...
...
@@ -96,14 +96,17 @@ TimelineController::~TimelineController()
void
TimelineController
::
prepareClose
()
{
// Clear roo
r
so we don't call its methods anymore
// Clear roo
t
so we don't call its methods anymore
QObject
::
disconnect
(
m_deleteConnection
);
disconnect
(
this
,
&
TimelineController
::
selectionChanged
,
this
,
&
TimelineController
::
updateClipActions
);
disconnect
(
this
,
&
TimelineController
::
videoTargetChanged
,
this
,
&
TimelineController
::
updateVideoTarget
);
disconnect
(
this
,
&
TimelineController
::
audioTargetChanged
,
this
,
&
TimelineController
::
updateAudioTarget
);
m_ready
=
false
;
m_root
=
nullptr
;
m_model
.
reset
();
// Delete timeline preview before resetting model so that removing clips from timeline doesn't invalidate
delete
m_timelinePreview
;
m_timelinePreview
=
nullptr
;
m_model
.
reset
();
}
void
TimelineController
::
setModel
(
std
::
shared_ptr
<
TimelineItemModel
>
model
)
...
...
Eugen Mohr
@emohr
mentioned in issue
#973
·
Apr 06, 2021
mentioned in issue
#973
mentioned in issue #973
Toggle commit list
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