| 211 | } |
| 212 | |
| 213 | void BranchesListModel::setCurrentBranch(const QString& branch) |
| 214 | { |
| 215 | Q_D(BranchesListModel); |
| 216 | |
| 217 | KDevelop::VcsJob* job = d->dvcsplugin->switchBranch(d->repo, branch); |
| 218 | connect(job, &VcsJob::finished, this, &BranchesListModel::currentBranchChanged); |
| 219 | KDevelop::ICore::self()->runController()->registerJob(job); |
| 220 | } |
| 221 | |
| 222 | #include "moc_brancheslistmodel.cpp" |
nothing calls this directly
no test coverage detected