mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1476 Include isFile() when checking if a file exists
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "cafPdmSettings.h"
|
||||
#include "cafPdmUiPropertyViewDialog.h"
|
||||
#include "cafProgressInfo.h"
|
||||
#include "cafUtils.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
@@ -100,7 +101,7 @@ bool RimEclipseResultCase::openEclipseGridFile()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!QFile::exists(caseFileName()))
|
||||
if (!caf::Utils::fileExists(caseFileName()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -174,7 +175,7 @@ bool RimEclipseResultCase::openAndReadActiveCellData(RigEclipseCaseData* mainEcl
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!QFile::exists(caseFileName()))
|
||||
if (!caf::Utils::fileExists(caseFileName()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user