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
ada77e20
Commit
ada77e20
authored
Mar 22, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix possible crash in bin when selecting a clip
parent
0d38cbf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
ada77e20
...
...
@@ -2259,12 +2259,6 @@ void Bin::selectProxyModel(const QModelIndex &id)
ClipType
::
ProducerType
type
=
clip
->
clipType
();
m_deleteAction
->
setText
(
i18n
(
"Delete Clip"
));
m_proxyAction
->
setText
(
i18n
(
"Proxy Clip"
));
//TODO: testing only, we should check clip type...
if
(
type
==
ClipType
::
Playlist
)
{
pCore
->
timeRemapWidget
()
->
setClip
(
clip
);
}
else
{
pCore
->
timeRemapWidget
()
->
setClip
(
nullptr
);
}
}
else
if
(
itemType
==
AbstractProjectItem
::
FolderItem
)
{
// A folder was selected, disable editing clip
m_tagsWidget
->
setTagData
();
...
...
@@ -2280,7 +2274,7 @@ void Bin::selectProxyModel(const QModelIndex &id)
bool
isImported
=
false
;
bool
hasAudio
=
false
;
ClipType
::
ProducerType
type
=
ClipType
::
Unknown
;
if
(
clip
)
{
if
(
clip
&&
clip
->
statusReady
()
)
{
emit
requestShowClipProperties
(
clip
,
false
);
m_proxyAction
->
blockSignals
(
true
);
if
(
itemType
==
AbstractProjectItem
::
ClipItem
)
{
...
...
Write
Preview
Markdown
is supported
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