mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use compare() because endsWith() does not work as expected on Windows
p4#: 22005
This commit is contained in:
parent
b5688c5cd9
commit
390abe0f81
@ -98,6 +98,8 @@ void RivWellPathPartMgr::buildWellPathParts(cvf::Vec3d displayModelOffset, doubl
|
||||
if (m_wellPathCollection.isNull()) return;
|
||||
|
||||
RigWellPath* wellPathGeometry = m_rimWellPath->wellPathGeometry();
|
||||
if (!wellPathGeometry) return;
|
||||
|
||||
if (wellPathGeometry->m_wellPathPoints.size() < 2) return;
|
||||
|
||||
m_wellBranches.clear();
|
||||
|
@ -166,7 +166,9 @@ caf::PdmFieldHandle* RimWellPath::objectToggleField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPath::readWellPathFile()
|
||||
{
|
||||
if (filepath().endsWith(".json"), Qt::CaseInsensitive)
|
||||
QFileInfo fi(filepath());
|
||||
|
||||
if (fi.suffix().compare("json") == 0)
|
||||
{
|
||||
this->readJsonWellPathFile();
|
||||
}
|
||||
|
@ -156,7 +156,9 @@ void RimWellPathCollection::addWellPaths( QStringList filePaths )
|
||||
|
||||
if (!alreadyOpen)
|
||||
{
|
||||
if (filePath.endsWith(".json"), Qt::CaseInsensitive)
|
||||
QFileInfo fi(filePath);
|
||||
|
||||
if (fi.suffix().compare("json") == 0)
|
||||
{
|
||||
RimWellPath* wellPath = new RimWellPath();
|
||||
wellPath->setProject(m_project);
|
||||
|
Loading…
Reference in New Issue
Block a user