mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Detect when project path has changed, and do a explicit update of file path for RimCases.
Do not use initAfterRead p4#: 21165
This commit is contained in:
@@ -239,8 +239,7 @@ bool RiaApplication::loadProject(const QString& projectFileName)
|
||||
// If the project filename has changed, call initAfterRead once more to propagate new location of project
|
||||
if (m_project->fileName() != projectFileName)
|
||||
{
|
||||
m_project->fileName = projectFileName;
|
||||
caf::PdmDocument::initAfterReadTraversal(m_project);
|
||||
m_project->setProjectFileNameAndUpdateDependencies(projectFileName);
|
||||
}
|
||||
|
||||
// On error, delete everything, and bail out.
|
||||
|
||||
Reference in New Issue
Block a user