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
17a7e6f4
Commit
17a7e6f4
authored
Sep 04, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix cancel jobs not working
parent
8aa5a69b
Pipeline
#7398
passed with stage
in 20 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
17a7e6f4
...
...
@@ -813,6 +813,19 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent)
m_infoLabel
->
setMenu
(
m_jobsMenu
);
m_infoLabel
->
setAction
(
infoAction
);
connect
(
m_discardCurrentClipJobs
,
&
QAction
::
triggered
,
[
&
]()
{
const
QString
currentId
=
m_monitor
->
activeClipId
();
if
(
!
currentId
.
isEmpty
())
{
pCore
->
jobManager
()
->
discardJobs
(
currentId
);
}
});
connect
(
m_cancelJobs
,
&
QAction
::
triggered
,
[
&
]()
{
pCore
->
jobManager
()
->
slotCancelJobs
();
});
connect
(
m_discardPendingJobs
,
&
QAction
::
triggered
,
[
&
]()
{
pCore
->
jobManager
()
->
slotCancelPendingJobs
();
});
// Hack, create toolbar spacer
QWidget
*
spacer
=
new
QWidget
();
spacer
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
...
...
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