392 |
// Stabilize current form state. |
// Stabilize current form state. |
393 |
void InstrumentForm::stabilizeForm (void) |
void InstrumentForm::stabilizeForm (void) |
394 |
{ |
{ |
395 |
bool bValid = !ui.NameLineEdit->text().isEmpty(); |
bool bValid = |
396 |
|
!ui.NameLineEdit->text().isEmpty() && |
397 |
|
ui.EngineNameComboBox->currentIndex() >= 0 && |
398 |
|
ui.EngineNameComboBox->currentText() != |
399 |
|
qsamplerChannel::noEngineName(); |
400 |
|
|
401 |
const QString& sPath = ui.InstrumentFileComboBox->currentText(); |
const QString& sPath = ui.InstrumentFileComboBox->currentText(); |
402 |
bValid = bValid && !sPath.isEmpty() && QFileInfo(sPath).exists(); |
bValid = bValid && !sPath.isEmpty() && QFileInfo(sPath).exists(); |