/[svn]/qsampler/trunk/src/qsamplerInstrumentForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerInstrumentForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1505 by capela, Wed Nov 21 18:37:40 2007 UTC revision 1506 by schoenebeck, Wed Nov 21 19:57:18 2007 UTC
# Line 392  void InstrumentForm::changed (void) Line 392  void InstrumentForm::changed (void)
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();

Legend:
Removed from v.1505  
changed lines
  Added in v.1506

  ViewVC Help
Powered by ViewVC