mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 03:31:41 +00:00
GUI: always update job stats when checking whether or not to start a job
Fixes #1236.
This commit is contained in:
parent
9eb7d95122
commit
6af604ae2d
@ -1,5 +1,8 @@
|
||||
2015-06-06 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* MKVToolNix GUI: fixed updating the number of pending jobs info
|
||||
in the status bar when manually starting jobs. Fixes #1236.
|
||||
|
||||
* MKVToolNix GUI: merge tool bug fix: fixed a crash when removing
|
||||
source files. Fixes #1235.
|
||||
|
||||
|
@ -355,6 +355,8 @@ Model::startNextAutoJob() {
|
||||
|
||||
QMutexLocker locked{&m_mutex};
|
||||
|
||||
updateJobStats();
|
||||
|
||||
if (!m_started)
|
||||
return;
|
||||
|
||||
@ -439,7 +441,7 @@ Model::updateJobStats() {
|
||||
auto numOther = 0;
|
||||
|
||||
for (auto const &job : m_jobsById)
|
||||
if (Job::PendingAuto == job->m_status)
|
||||
if (mtx::included_in(job->m_status, Job::PendingAuto, Job::Running))
|
||||
++numPendingAuto;
|
||||
|
||||
else if (Job::PendingManual == job->m_status)
|
||||
|
@ -145,6 +145,7 @@ Tool::onStartAllPending() {
|
||||
if (Job::PendingManual == job.m_status)
|
||||
job.setPendingAuto();
|
||||
});
|
||||
|
||||
m_model->startNextAutoJob();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user