* @brief Update "Next diff" UI items */
| 1255 | * @brief Update "Next diff" UI items |
| 1256 | */ |
| 1257 | void CWebPageDiffFrame::OnUpdateNextdiff(CCmdUI* pCmdUI) |
| 1258 | { |
| 1259 | bool enabled = m_bCompareCompleted && ( |
| 1260 | m_pWebDiffWindow->GetNextDiffIndex() >= 0 || |
| 1261 | (m_pWebDiffWindow->GetDiffCount() > 0 && m_pWebDiffWindow->GetCurrentDiffIndex() == -1)); |
| 1262 | |
| 1263 | if (!enabled && m_pDirDoc != nullptr) |
| 1264 | enabled = m_pDirDoc->MoveableToNextDiff(); |
| 1265 | pCmdUI->Enable(enabled); |
| 1266 | } |
| 1267 | |
| 1268 | /** |
| 1269 | * @brief Go to previous diff and select it. |
nothing calls this directly
no test coverage detected