mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10002 Do not replace '.' with the current project path
When starting resinsight from a working folder, the project file paths can be relative to this folder (current working folder). If files are referenced relative to current working folder, the file references can start with either '..' or '.' Make sure that these paths are left unchanged.
This commit is contained in:
parent
6529b1760d
commit
b21c7028c2
@ -483,11 +483,6 @@ void RimProject::setProjectFileNameAndUpdateDependencies( const QString& project
|
||||
std::vector<QString> searchedPaths;
|
||||
|
||||
QString filePathCandidate = filePath->path();
|
||||
if ( filePathCandidate.startsWith( '.' ) )
|
||||
{
|
||||
filePathCandidate = filePathCandidate.right( filePathCandidate.size() - 1 );
|
||||
filePathCandidate = newProjectPath + filePathCandidate;
|
||||
}
|
||||
|
||||
QString newFilePath = RimTools::relocateFile( filePathCandidate, newProjectPath, oldProjectPath, &foundFile, &searchedPaths );
|
||||
filePath->setPath( newFilePath );
|
||||
|
Loading…
Reference in New Issue
Block a user