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
449af1b9
Commit
449af1b9
authored
Dec 01, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix crash importing empty keyframes
parent
509af7f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/keyframeimport.cpp
View file @
449af1b9
...
...
@@ -37,6 +37,8 @@ KeyframeImport::KeyframeImport(const QString &animData, std::shared_ptr<AssetPar
,
m_indexes
(
indexes
)
,
m_supportsAnim
(
false
)
,
m_previewLabel
(
nullptr
)
,
m_sourceCombo
(
nullptr
)
,
m_targetCombo
(
nullptr
)
,
m_isReady
(
false
)
{
setAttribute
(
Qt
::
WA_DeleteOnClose
);
...
...
@@ -1285,6 +1287,11 @@ void KeyframeImport::updateView()
void
KeyframeImport
::
reject
()
{
if
(
m_targetCombo
==
nullptr
)
{
// no data to import, close
QDialog
::
reject
();
return
;
}
for
(
int
i
=
0
;
i
<
m_targetCombo
->
count
();
i
++
)
{
QPersistentModelIndex
ix
=
m_targetCombo
->
itemData
(
i
).
toModelIndex
();
if
(
m_originalParams
.
contains
(
ix
))
{
...
...
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