Fix cancel jobs not working

parent 8aa5a69b
Pipeline #7398 passed with stage
in 20 minutes and 46 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment