diff options
Diffstat (limited to 'sigscript/EggGroupWrapper.cpp')
-rw-r--r-- | sigscript/EggGroupWrapper.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sigscript/EggGroupWrapper.cpp b/sigscript/EggGroupWrapper.cpp index fee20d84..0c18289b 100644 --- a/sigscript/EggGroupWrapper.cpp +++ b/sigscript/EggGroupWrapper.cpp @@ -23,9 +23,10 @@ Sigscript::EggGroupWrapper* Sigscript::EggGroupWrapper::create(const Sigmod::EggGroup* eggGroup, SigmodWrapper* parent) { - if (!m_instances.contains(Signature(parent, eggGroup->id()))) - m_instances[Signature(parent, eggGroup->id())] = new EggGroupWrapper(eggGroup, parent); - return qobject_cast<EggGroupWrapper*>(m_instances[Signature(parent, eggGroup->id())]); + Signature sig = Signature(parent, Subsignature(eggGroup->className(), eggGroup->id())); + if (!m_instances.contains(sig)) + m_instances[sig] = new EggGroupWrapper(eggGroup, parent); + return qobject_cast<EggGroupWrapper*>(m_instances[sig]); } Sigscript::EggGroupWrapper::EggGroupWrapper(const Sigmod::EggGroup* eggGroup, SigmodWrapper* parent) : |