GUI: always update job stats when checking whether or not to start a job

Fixes #1236.
This commit is contained in:
Moritz Bunkus 2015-06-06 11:10:01 +02:00
parent 9eb7d95122
commit 6af604ae2d
3 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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)

View File

@ -145,6 +145,7 @@ Tool::onStartAllPending() {
if (Job::PendingManual == job.m_status)
job.setPendingAuto();
});
m_model->startNextAutoJob();
}