| 127 | } |
| 128 | |
| 129 | void BranchesListModel::removeBranch(const QString& branch) |
| 130 | { |
| 131 | Q_D(BranchesListModel); |
| 132 | |
| 133 | KDevelop::VcsJob *branchJob = d->dvcsplugin->deleteBranch(d->repo, branch); |
| 134 | |
| 135 | qCDebug(VCS) << "Removing branch:" << branch; |
| 136 | if (branchJob->exec()) { |
| 137 | const QList<QStandardItem*> items = findItems(branch); |
| 138 | for (QStandardItem* item : items) { |
| 139 | removeRow(item->row()); |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | QUrl BranchesListModel::repository() const |
| 145 | { |
no test coverage detected