mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1384 Relocate filenames containing faults when opening project
This commit is contained in:
parent
2bb2405682
commit
174d658219
@ -356,6 +356,15 @@ void RimEclipseResultCase::updateFilePathsFromProjectPath(const QString& newProj
|
|||||||
|
|
||||||
// Update filename and folder paths when opening project from a different file location
|
// Update filename and folder paths when opening project from a different file location
|
||||||
caseFileName = RimTools::relocateFile(caseFileName(), newProjectPath, oldProjectPath, &foundFile, &searchedPaths);
|
caseFileName = RimTools::relocateFile(caseFileName(), newProjectPath, oldProjectPath, &foundFile, &searchedPaths);
|
||||||
|
|
||||||
|
std::vector<QString> relocatedFaultFiles;
|
||||||
|
for (auto faultFileName : filesContainingFaults())
|
||||||
|
{
|
||||||
|
QString relocatedFaultFile = RimTools::relocateFile(faultFileName, newProjectPath, oldProjectPath, &foundFile, &searchedPaths);
|
||||||
|
relocatedFaultFiles.push_back(relocatedFaultFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
filesContainingFaults = relocatedFaultFiles;
|
||||||
|
|
||||||
#if 0 // Output the search path for debugging
|
#if 0 // Output the search path for debugging
|
||||||
for (size_t i = 0; i < searchedPaths.size(); ++i)
|
for (size_t i = 0; i < searchedPaths.size(); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user