| 165 | } |
| 166 | |
| 167 | void BranchesListModel::refresh() |
| 168 | { |
| 169 | Q_D(BranchesListModel); |
| 170 | |
| 171 | const QStringList branches = runSynchronously(d->dvcsplugin->branches(d->repo)).toStringList(); |
| 172 | QString curBranch = runSynchronously(d->dvcsplugin->currentBranch(d->repo)).toString(); |
| 173 | |
| 174 | for (const QString& branch : branches) { |
| 175 | appendRow(new BranchItem(branch, branch == curBranch)); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | void BranchesListModel::resetCurrent() |
| 180 | { |
nothing calls this directly
no test coverage detected