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