582 |
void Channel::updateInstrumentName (void) |
void Channel::updateInstrumentName (void) |
583 |
{ |
{ |
584 |
#ifndef CONFIG_INSTRUMENT_NAME |
#ifndef CONFIG_INSTRUMENT_NAME |
585 |
|
Options *pOptions = nullptr; |
586 |
|
MainForm *pMainForm = MainForm::getInstance(); |
587 |
|
if (pMainForm) |
588 |
|
pOptions = pMainForm->options(); |
589 |
m_sInstrumentName = getInstrumentName(m_sInstrumentFile, |
m_sInstrumentName = getInstrumentName(m_sInstrumentFile, |
590 |
m_iInstrumentNr, (options() && options()->bInstrumentNames)); |
m_iInstrumentNr, (pOptions && pOptions->bInstrumentNames)); |
591 |
#endif |
#endif |
592 |
} |
} |
593 |
|
|