Use compare() because endsWith() does not work as expected on Windows

p4#: 22005
This commit is contained in:
Magne Sjaastad
2013-06-26 12:01:53 +02:00
parent b5688c5cd9
commit 390abe0f81
3 changed files with 8 additions and 2 deletions
@@ -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();
}