Skip to content
Snippets Groups Projects
Commit 0ccf48e8 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

apply initializer after object creation in SelectionProperty

parent 09770240
No related branches found
No related tags found
1 merge request!2104Reapply initialization settings when reading 'SelectionProperty' (#788)
Pipeline #119033 passed
......@@ -162,6 +162,8 @@ public:
const uint typeIndex = XML::readUIntAttribute(r, XML::Attrib::type);
const auto type = static_cast<typename Catalog::Type>(typeIndex);
auto* p = Catalog::create(type, argsForCreation...);
if (m_initializer)
m_initializer(p, m_p.get());
if (p)
p->readFrom(r);
m_p.reset(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment