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
7f782123
Commit
7f782123
authored
Apr 16, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash on clip job.
Fixes
#637
parent
7313d42b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/jobmanager.ipp
View file @
7f782123
...
...
@@ -47,8 +47,8 @@ int JobManager::startJob(const std::vector<QString> &binIds, int parentId, QStri
m_jobs[jobId] = job;
endInsertRows();
m_lock.unlock();
if (parentId == -1 || m_jobs[parentId]->m_completionMutex.tryLock()) {
if (parentId != -1) {
if (parentId == -1 ||
m_jobs.count(parentId) == 0 ||
m_jobs[parentId]->m_completionMutex.tryLock()) {
if (parentId != -1
&& m_jobs.count(parentId) > 0
) {
m_jobs[parentId]->m_completionMutex.unlock();
}
QtConcurrent::run(this, &JobManager::createJob, job);
...
...
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