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
f9491a9e
Commit
f9491a9e
authored
Feb 01, 2020
by
Jean-Baptiste Mardelle
Browse files
Attempt to fix crash after profile change
parent
5e6eba35
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core.cpp
View file @
f9491a9e
...
...
@@ -342,7 +342,14 @@ bool Core::setCurrentProfile(const QString &profilePath)
if
(
ProfileRepository
::
get
()
->
profileExists
(
profilePath
))
{
m_currentProfile
=
profilePath
;
m_thumbProfile
.
reset
();
m_projectProfile
.
reset
();
if
(
m_projectProfile
)
{
m_projectProfile
->
set_width
(
getCurrentProfile
()
->
width
());
m_projectProfile
->
set_height
(
getCurrentProfile
()
->
height
());
m_projectProfile
->
set_display_aspect
(
getCurrentProfile
()
->
display_aspect_num
(),
getCurrentProfile
()
->
display_aspect_den
());
m_projectProfile
->
set_sample_aspect
(
getCurrentProfile
()
->
sample_aspect_num
(),
getCurrentProfile
()
->
sample_aspect_den
());
m_projectProfile
->
set_colorspace
(
getCurrentProfile
()
->
colorspace
());
m_projectProfile
->
set_progressive
(
getCurrentProfile
()
->
progressive
());
}
// inform render widget
profileChanged
();
m_mainWindow
->
updateRenderWidgetProfile
();
...
...
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