Make sure file paths are resolved before initAfterRead() is called

This commit is contained in:
Magne Sjaastad
2023-04-03 14:56:25 +02:00
parent b2e8cc1663
commit e8f6d4819f
4 changed files with 21 additions and 2 deletions

View File

@@ -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
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -196,7 +196,7 @@ public:
std::vector<caf::FilePath*> allFilePaths() const;
protected:
// Overridden methods
void beforeInitAfterRead() override;
void initAfterRead() override;
void setupBeforeSave() override;