diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-10-16 23:36:56 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-10-16 23:36:56 +0000 |
| commit | 3b83cc89885788de19b09f5e9e55c5d3ad7c60c9 (patch) | |
| tree | 5de86af20055a96c81952fb44a0e0193681b9762 /sigscript/CoinListObjectWrapper.cpp | |
| parent | 460e7bdf3f6c1de69f41b02a16deb85522ae3c49 (diff) | |
| download | sigen-3b83cc89885788de19b09f5e9e55c5d3ad7c60c9.tar.gz sigen-3b83cc89885788de19b09f5e9e55c5d3ad7c60c9.tar.xz sigen-3b83cc89885788de19b09f5e9e55c5d3ad7c60c9.zip | |
[FIX] Signature is fixed in Sigscript
[FIX] Hat cleaned up a bit
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@279 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigscript/CoinListObjectWrapper.cpp')
| -rw-r--r-- | sigscript/CoinListObjectWrapper.cpp | 7 |
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) : |
