206 |
QString sInstrumentFile = pChannel->instrumentFile(); |
QString sInstrumentFile = pChannel->instrumentFile(); |
207 |
if (sInstrumentFile.isEmpty()) |
if (sInstrumentFile.isEmpty()) |
208 |
sInstrumentFile = qsamplerChannel::noInstrumentName(); |
sInstrumentFile = qsamplerChannel::noInstrumentName(); |
209 |
ui.InstrumentFileComboBox->setItemText( |
ui.InstrumentFileComboBox->setEditText(sInstrumentFile); |
|
ui.InstrumentFileComboBox->currentIndex(), |
|
|
sInstrumentFile); |
|
210 |
ui.InstrumentNrComboBox->clear(); |
ui.InstrumentNrComboBox->clear(); |
211 |
ui.InstrumentNrComboBox->insertItems(0, |
ui.InstrumentNrComboBox->insertItems(0, |
212 |
qsamplerChannel::getInstrumentList(sInstrumentFile, |
qsamplerChannel::getInstrumentList(sInstrumentFile, |
445 |
if (sInstrumentFile.isEmpty()) |
if (sInstrumentFile.isEmpty()) |
446 |
return; |
return; |
447 |
|
|
448 |
ui.InstrumentFileComboBox->setItemText( |
ui.InstrumentFileComboBox->setEditText(sInstrumentFile); |
|
ui.InstrumentFileComboBox->currentIndex(), |
|
|
sInstrumentFile); |
|
|
|
|
449 |
updateInstrumentName(); |
updateInstrumentName(); |
450 |
} |
} |
451 |
|
|
763 |
// Stabilize current form state. |
// Stabilize current form state. |
764 |
void ChannelForm::stabilizeForm (void) |
void ChannelForm::stabilizeForm (void) |
765 |
{ |
{ |
766 |
bool bValid = true; |
const bool bValid = |
767 |
|
ui.EngineNameComboBox->currentIndex() >= 0 && |
768 |
|
ui.EngineNameComboBox->currentText() != |
769 |
|
qsamplerChannel::noEngineName(); |
770 |
#if 0 |
#if 0 |
771 |
const QString& sPath = InstrumentFileComboBox->currentText(); |
const QString& sPath = InstrumentFileComboBox->currentText(); |
772 |
bValid = bValid && !sPath.isEmpty() && QFileInfo(sPath).exists(); |
bValid = bValid && !sPath.isEmpty() && QFileInfo(sPath).exists(); |