#1475 Use caf::Utils::fileExists

This commit is contained in:
Magne Sjaastad
2017-05-15 13:40:13 +02:00
parent 886f4ce3ab
commit 1a075470cf
3 changed files with 6 additions and 20 deletions

View File

@@ -39,9 +39,8 @@
#include "RivWellPathPartMgr.h"
#include "cafUtils.h"
#include "cafPdmUiTreeOrdering.h"
#include "cafUtils.h"
#include <QDateTime>
#include <QDir>
@@ -218,7 +217,7 @@ caf::PdmFieldHandle* RimWellPath::objectToggleField()
//--------------------------------------------------------------------------------------------------
bool RimWellPath::readWellPathFile(QString* errorMessage, RifWellPathImporter* wellPathImporter)
{
if (wellPathImporter->canReadFile(filepath()))
if (caf::Utils::fileExists(filepath()))
{
RifWellPathImporter::WellData wellData = wellPathImporter->readWellData(filepath(), wellPathIndexInFile());
RifWellPathImporter::WellMetaData wellMetaData = wellPathImporter->readWellMetaData(filepath(), wellPathIndexInFile());