| 1197 | } |
| 1198 | |
| 1199 | void CMainFrame::OnDeepCloneInstrument() |
| 1200 | { |
| 1201 | CFamiTrackerDoc &Doc = GetDoc(); |
| 1202 | |
| 1203 | // No instruments in list |
| 1204 | if (m_pInstrumentList->GetItemCount() == 0) |
| 1205 | return; |
| 1206 | |
| 1207 | auto Manager = Doc.GetModule()->GetInstrumentManager(); // // // |
| 1208 | if (Manager->DeepCloneInstrument(m_iInstrument, Manager->GetFirstUnused())) { |
| 1209 | Doc.ModifyIrreversible(); // // // |
| 1210 | Doc.UpdateAllViews(NULL, UPDATE_INSTRUMENT); |
| 1211 | } |
| 1212 | else |
| 1213 | AfxMessageBox(IDS_INST_LIMIT, MB_ICONERROR); |
| 1214 | } |
| 1215 | |
| 1216 | void CMainFrame::OnBnClickedEditInst() |
| 1217 | { |
nothing calls this directly
no test coverage detected