--- qsampler/trunk/src/qsamplerInstrumentForm.cpp 2007/11/01 19:25:10 1466 +++ qsampler/trunk/src/qsamplerInstrumentForm.cpp 2007/11/05 20:47:38 1474 @@ -64,13 +64,13 @@ SIGNAL(valueChanged(int)), SLOT(changed())); QObject::connect(ui.NameLineEdit, - SIGNAL(textChanged(const QString&)), - SLOT(nameChanged(const QString&))); + SIGNAL(textChanged(const QString&)), + SLOT(nameChanged(const QString&))); QObject::connect(ui.EngineNameComboBox, SIGNAL(activated(int)), SLOT(changed())); QObject::connect(ui.InstrumentFileComboBox, - SIGNAL(activated(const QString&)), + SIGNAL(activated(const QString&)), SLOT(updateInstrumentName())); QObject::connect(ui.InstrumentFileToolButton, SIGNAL(clicked()), @@ -179,7 +179,7 @@ if (sEngineName.isEmpty()) sEngineName = qsamplerChannel::noEngineName(); if (ui.EngineNameComboBox->findText(sEngineName, - Qt::MatchExactly | Qt::MatchCaseSensitive) == 0) { + Qt::MatchExactly | Qt::MatchCaseSensitive) < 0) { ui.EngineNameComboBox->insertItem(sEngineName); } ui.EngineNameComboBox->setCurrentText(sEngineName);