--- qsampler/trunk/src/qsamplerChannelForm.cpp 2010/07/10 09:47:33 2107 +++ qsampler/trunk/src/qsamplerChannelForm.cpp 2010/07/15 08:03:32 2108 @@ -473,10 +473,17 @@ // 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)"; + filters << tr("All files") + " (*.*)"; + const QString& filter = filters.join(";;"); + QString sInstrumentFile = QFileDialog::getOpenFileName(this, QSAMPLER_TITLE ": " + tr("Instrument files"), // Caption. - pOptions->sInstrumentDir, // Start here. - tr("Instrument files") + " (*.gig *.dls)" // Filter (GIG and DLS files) + pOptions->sInstrumentDir, // Start here. + filter // File filter. ); if (sInstrumentFile.isEmpty())