| 522 | } |
| 523 | |
| 524 | void PatchReviewToolView::documentActivated( IDocument* doc ) { |
| 525 | if( !doc ) |
| 526 | return; |
| 527 | |
| 528 | if ( !m_plugin->modelList() ) |
| 529 | return; |
| 530 | |
| 531 | const auto index = VcsFileChangesModel::statusIndexForUrl(*m_fileSortProxyModel, QModelIndex{}, doc->url()); |
| 532 | m_editPatch.filesList->setCurrentIndex(index); |
| 533 | } |
| 534 | |
| 535 | void PatchReviewToolView::runTests() |
| 536 | { |
nothing calls this directly
no test coverage detected