#5147 Fix RimFileWellPath::setupBeforeSave addressing the filePath

Needs to copy the cached wellpaths on save.
Split the cached filePath and the uncached filePath to only list the external well paths in the global path list, and to be able to copy the cached files on save.
This commit is contained in:
Jacob Støren committed 2019-12-12 16:15:24 +01:00
1 parent e4eea67a4e
commit 1c6c82af85
5 files changed
+62 -29

No files matched your search

@@ -191,7 +191,7 @@ bool RimWellLogFile::readFile( QString* errorMessage )
this->firstAncestorOrThisOfType( wellPath );
if ( wellPath )
{
if ( wellPath->filepath().isEmpty() ) // Has dummy wellpath
if ( wellPath->filePath().isEmpty() ) // Has dummy wellpath
{
wellPath->setName( m_wellName );
}
@@ -244,7 +244,7 @@ void RimWellLogFile::updateFilePathsFromProjectPath( const QString& newProjectPa
{
// bool foundFile = false;
// std::vector<QString> searchedPaths;
//
//
// QString fileNameCandidate =
// RimTools::relocateFile( m_fileName(), newProjectPath, oldProjectPath, &foundFile, &searchedPaths );
// if ( foundFile )