mirror of
https://github.com/leozide/leocad
synced 2025-02-05 08:45:55 +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)
|
||||
{
|
||||
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())
|
||||
|
|
Loading…
Add table
Reference in a new issue