Consider adding the following local variable to reduce repetition:

  auto& master = getApp().getLedgerMaster();