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