mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Always try to import well path from well path cache
This commit is contained in:
parent
ba497bebdf
commit
fb763483a2
@ -260,19 +260,10 @@ bool RimFileWellPath::isStoredInCache() const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimFileWellPath::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
void RimFileWellPath::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
||||||
{
|
{
|
||||||
// RimWellPath::updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
QString newCacheFileName = getCacheFileName();
|
||||||
|
|
||||||
if ( isStoredInCache() )
|
if ( caf::Utils::fileExists( newCacheFileName ) )
|
||||||
{
|
{
|
||||||
QString newCacheFileName = getCacheFileName();
|
m_filePathInCache = newCacheFileName;
|
||||||
|
|
||||||
if ( caf::Utils::fileExists( newCacheFileName ) )
|
|
||||||
{
|
|
||||||
m_filePathInCache = newCacheFileName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// m_filepath = RimTools::relocateFile( m_filepath(), newProjectPath, oldProjectPath, nullptr, nullptr );
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user