| 557 | } |
| 558 | |
| 559 | void RepoStatusModel::jobUnregistered(KJob* job) |
| 560 | { |
| 561 | static const std::array<VcsJob::JobType, 9> readOnly = { |
| 562 | VcsJob::Add, |
| 563 | VcsJob::Remove, |
| 564 | VcsJob::Pull, |
| 565 | VcsJob::Commit, |
| 566 | VcsJob::Move, |
| 567 | VcsJob::Copy, |
| 568 | VcsJob::Revert, |
| 569 | VcsJob::Reset, |
| 570 | VcsJob::Apply |
| 571 | }; |
| 572 | |
| 573 | auto* vcsjob = qobject_cast<VcsJob*>(job); |
| 574 | if (vcsjob && std::find(readOnly.begin(), readOnly.end(), vcsjob->type()) != readOnly.end()) { |
| 575 | reloadAll(); |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | void RepoStatusModel::repositoryBranchChanged(const QUrl& url) |
| 580 | { |