--- qsampler/trunk/src/qsamplerChannelForm.cpp 2010/07/15 17:01:35 2109 +++ qsampler/trunk/src/qsamplerChannelForm.cpp 2010/07/17 12:21:01 2110 @@ -474,9 +474,13 @@ // FIXME: the instrument file filters should be restricted, // depending on the current engine. QStringList filters; - filters << tr("GIG Instrument files") + " (*.gig *.dls)"; - filters << tr("SFZ Instrument files") + " (*.sfz)"; - filters << tr("SF2 Instrument files") + " (*.sf2)"; + const QString& sEngineName = m_ui.EngineNameComboBox->currentText().toUpper(); + if (sEngineName.contains("GIG")) + filters << tr("GIG Instrument files") + " (*.gig *.dls)"; + if (sEngineName.contains("SFZ")) + filters << tr("SFZ Instrument files") + " (*.sfz)"; + if (sEngineName.contains("SF2")) + filters << tr("SF2 Instrument files") + " (*.sf2)"; filters << tr("All files") + " (*.*)"; const QString& filter = filters.join(";;");