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
bfbed8fd
Commit
bfbed8fd
authored
Nov 14, 2019
by
Jean-Baptiste Mardelle
Browse files
make sure to cancel cache job on close
parent
076db9fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/cachejob.cpp
View file @
bfbed8fd
...
...
@@ -50,6 +50,10 @@ CacheJob::CacheJob(const QString &binId, int imageHeight, int thumbsCount, int i
m_imageHeight
+=
m_imageHeight
%
2
;
auto
item
=
pCore
->
projectItemModel
()
->
getItemByBinId
(
binId
);
Q_ASSERT
(
item
!=
nullptr
&&
item
->
itemType
()
==
AbstractProjectItem
::
ClipItem
);
connect
(
this
,
&
CacheJob
::
jobCanceled
,
[
&
]
()
{
m_clipId
.
clear
();
m_done
=
true
;
});
}
const
QString
CacheJob
::
getDescription
()
const
...
...
@@ -81,10 +85,6 @@ bool CacheJob::startJob()
}
int
size
=
(
int
)
frames
.
size
();
int
count
=
0
;
connect
(
this
,
&
CacheJob
::
jobCanceled
,
[
&
]
()
{
m_clipId
.
clear
();
m_done
=
true
;
});
for
(
int
i
:
frames
)
{
if
(
m_done
)
{
break
;
...
...
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