summaryrefslogtreecommitdiffstats
path: root/sigscript/CoinListObjectWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/CoinListObjectWrapper.cpp')
-rw-r--r--sigscript/CoinListObjectWrapper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sigscript/CoinListObjectWrapper.cpp b/sigscript/CoinListObjectWrapper.cpp
index 6520b8d1..c04e90f1 100644
--- a/sigscript/CoinListObjectWrapper.cpp
+++ b/sigscript/CoinListObjectWrapper.cpp
@@ -24,9 +24,10 @@
Sigscript::CoinListObjectWrapper* Sigscript::CoinListObjectWrapper::create(const Sigmod::CoinListObject* object, CoinListWrapper* parent)
{
- if (!m_instances.contains(Signature(parent, object->id())))
- m_instances[Signature(parent, object->id())] = new CoinListObjectWrapper(object, parent);
- return qobject_cast<CoinListObjectWrapper*>(m_instances[Signature(parent, object->id())]);
+ Signature sig = Signature(parent, Subsignature(object->className(), object->id()));
+ if (!m_instances.contains(sig))
+ m_instances[sig] = new CoinListObjectWrapper(object, parent);
+ return qobject_cast<CoinListObjectWrapper*>(m_instances[sig]);
}
Sigscript::CoinListObjectWrapper::CoinListObjectWrapper(const Sigmod::CoinListObject* object, CoinListWrapper* parent) :