#2329 Add relocate of RimWellLogFile

This commit is contained in:
Magne Sjaastad
2018-01-08 10:37:57 +01:00
parent a40a3578f2
commit 561e20a37e
3 changed files with 30 additions and 3 deletions

View File

@@ -243,6 +243,21 @@ bool RimWellLogFile::hasFlowData() const
return RimWellPlotTools::hasFlowData(this);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogFile::updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath)
{
bool foundFile = false;
std::vector<QString> searchedPaths;
QString fileNameCandidate = RimTools::relocateFile(m_fileName(), newProjectPath, oldProjectPath, &foundFile, &searchedPaths);
if (foundFile)
{
m_fileName = fileNameCandidate;
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------