mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure file paths are resolved before initAfterRead() is called
This commit is contained in:
parent
b2e8cc1663
commit
e8f6d4819f
@ -303,7 +303,7 @@ void RimProject::close()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimProject::initAfterRead()
|
||||
void RimProject::beforeInitAfterRead()
|
||||
{
|
||||
this->distributePathsFromGlobalPathList();
|
||||
|
||||
@ -360,6 +360,14 @@ void RimProject::initAfterRead()
|
||||
if ( m_subWindowsTiledPlotWindow_OBSOLETE ) m_subWindowsTileModePlotWindow = RiaDefines::WindowTileMode::DEFAULT;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimProject::initAfterRead()
|
||||
{
|
||||
// Function moved to beforeInitAfterRead() to make sure that file path objects are replaced before other initAfterRead() is called
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -196,7 +196,7 @@ public:
|
||||
std::vector<caf::FilePath*> allFilePaths() const;
|
||||
|
||||
protected:
|
||||
// Overridden methods
|
||||
void beforeInitAfterRead() override;
|
||||
void initAfterRead() override;
|
||||
void setupBeforeSave() override;
|
||||
|
||||
|
@ -87,6 +87,7 @@ void PdmDocument::readFile( QIODevice* xmlFile )
|
||||
// after everything is read from file
|
||||
|
||||
resolveReferencesRecursively();
|
||||
beforeInitAfterRead();
|
||||
initAfterReadRecursively();
|
||||
}
|
||||
|
||||
@ -153,4 +154,11 @@ void PdmDocument::updateUiIconStateRecursively( PdmObjectHandle* object )
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmDocument::beforeInitAfterRead()
|
||||
{
|
||||
}
|
||||
|
||||
} // End of namespace caf
|
||||
|
@ -61,6 +61,9 @@ public:
|
||||
void writeFile( QIODevice* device );
|
||||
|
||||
static void updateUiIconStateRecursively( PdmObjectHandle* root );
|
||||
|
||||
protected:
|
||||
virtual void beforeInitAfterRead();
|
||||
};
|
||||
|
||||
} // End of namespace caf
|
||||
|
Loading…
Reference in New Issue
Block a user