Fixed ldconfig.ldr loading on case sensitive file systems. Fixes #348.

This commit is contained in:
Leonardo Zide 2019-05-18 10:49:48 -07:00
parent f392e3c4b3
commit ec720a6c04

View file

@ -325,7 +325,12 @@ bool lcPiecesLibrary::Load(const QString& LibraryPath, bool ShowProgress)
lcDiskFile ColorFile(mLibraryDir.absoluteFilePath(QLatin1String("ldconfig.ldr")));
if (!ColorFile.Open(QIODevice::ReadOnly) || !lcLoadColorFile(ColorFile))
lcLoadDefaultColors();
{
ColorFile.SetFileName(mLibraryDir.absoluteFilePath(QLatin1String("LDConfig.ldr")));
if (!ColorFile.Open(QIODevice::ReadOnly) || !lcLoadColorFile(ColorFile))
lcLoadDefaultColors();
}
}
else
return false;