mirror of
https://github.com/leozide/leocad
synced 2025-02-10 20:48:03 +01:00
Case insensitive submodel compare. Fixes #533.
This commit is contained in:
parent
5febd5f25f
commit
9009a974ad
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ bool Project::Load(const QString& FileName)
|
||||||
{
|
{
|
||||||
auto ModelCompare = [Model](const std::pair<int, lcModel*>& ModelIt)
|
auto ModelCompare = [Model](const std::pair<int, lcModel*>& ModelIt)
|
||||||
{
|
{
|
||||||
return ModelIt.second->GetFileName() == Model->GetFileName();
|
return ModelIt.second->GetFileName().compare(Model->GetFileName(), Qt::CaseInsensitive) == 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (std::find_if(Models.begin(), Models.end(), ModelCompare) == Models.end())
|
if (std::find_if(Models.begin(), Models.end(), ModelCompare) == Models.end())
|
||||||
|
|
Loading…
Add table
Reference in a new issue