| 113 | } |
| 114 | |
| 115 | void DistributedVersionControlPlugin::ctxBranchManager() |
| 116 | { |
| 117 | Q_D(DistributedVersionControlPlugin); |
| 118 | |
| 119 | QList<QUrl> const & ctxUrlList = d->m_common->contextUrlList(); |
| 120 | Q_ASSERT(!ctxUrlList.isEmpty()); |
| 121 | |
| 122 | if (!ICore::self()->documentController()->saveAllDocuments()) { |
| 123 | return; // canceled by the user |
| 124 | } |
| 125 | |
| 126 | ScopedDialog<BranchManager> branchManager(stripPathToDir(ctxUrlList.front().toLocalFile()), |
| 127 | this, core()->uiController()->activeMainWindow()); |
| 128 | branchManager->exec(); |
| 129 | } |
| 130 | |
| 131 | } |
| 132 |
nothing calls this directly
no test coverage detected