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

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

View File

@@ -61,6 +61,9 @@ public:
void writeFile( QIODevice* device );
static void updateUiIconStateRecursively( PdmObjectHandle* root );
protected:
virtual void beforeInitAfterRead();
};
} // End of namespace caf