MCPcopy Create free account
hub / github.com/KDE/kdevelop / jobUnregistered

Method jobUnregistered

plugins/git/repostatusmodel.cpp:559–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559void 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
579void RepoStatusModel::repositoryBranchChanged(const QUrl& url)
580{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected