Case-insensitive file extension comparison.

This commit is contained in:
Jared Boone
2016-05-31 09:34:35 -07:00
parent 25b01a19b8
commit 45362009e9

View File

@@ -121,7 +121,7 @@ void InputSource::cleanup()
void InputSource::openFile(const char *filename)
{
QFileInfo fileInfo(filename);
const auto suffix = fileInfo.suffix();
const auto suffix = fileInfo.suffix().toLower();
if ((suffix == "cfile") || (suffix == "cf32") || (suffix == "fc32")) {
sampleAdapter = std::unique_ptr<SampleAdapter>(new ComplexF32SampleAdapter());
}