mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Extract path from document file name in RimProject
p4#: 21160
This commit is contained in:
@@ -292,13 +292,13 @@ void RimResultCase::initAfterRead()
|
||||
return;
|
||||
}
|
||||
|
||||
QString projPath = projectPath();
|
||||
QString projPath = RiaApplication::instance()->project()->projectPath();
|
||||
|
||||
candidate = QDir::fromNativeSeparators(projPath + QDir::separator() + caseName + ".EGRID");
|
||||
if (QFile::exists(candidate))
|
||||
{
|
||||
caseFileName = candidate;
|
||||
caseDirectory = projectPath;
|
||||
caseDirectory = projPath;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -312,13 +312,3 @@ void RimResultCase::initAfterRead()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimResultCase::projectPath() const
|
||||
{
|
||||
QString projectFileName = RiaApplication::instance()->project()->fileName();
|
||||
QFileInfo fileInfo(projectFileName);
|
||||
return fileInfo.path();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user