MCPcopy Create free account
hub / github.com/WinMerge/winmerge / OnUpdateNextdiff

Method OnUpdateNextdiff

Src/WebPageDiffFrm.cpp:1257–1266  ·  view source on GitHub ↗

* @brief Update "Next diff" UI items */

Source from the content-addressed store, hash-verified

1255 * @brief Update "Next diff" UI items
1256 */
1257void 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.

Callers

nothing calls this directly

Calls 2

MoveableToNextDiffMethod · 0.80
GetDiffCountMethod · 0.45

Tested by

no test coverage detected