summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-02-15 16:38:21 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:58 -0300
commit0f29c21f6e9364593831c0d03693c36a2858dc0a (patch)
treea2557c7bcc402fc03a7758a1bcda2be1c8514e13
parentf8482e43947d2e0f218db70deae26186077899e5 (diff)
Make PySide signals work with meta types.
-rw-r--r--libpyside/pysidesignal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpyside/pysidesignal.cpp b/libpyside/pysidesignal.cpp
index 7a2c8ae2..3fc8b8ed 100644
--- a/libpyside/pysidesignal.cpp
+++ b/libpyside/pysidesignal.cpp
@@ -496,7 +496,7 @@ char* getTypeName(PyObject* type)
{
if (PyType_Check(type)) {
char *typeName = NULL;
- if (type->ob_type == &SbkObjectType_Type) {
+ if (PyType_IsSubtype(reinterpret_cast<PyTypeObject*>(type), reinterpret_cast<PyTypeObject*>(&SbkObject_Type))) {
SbkObjectType* objType = reinterpret_cast<SbkObjectType*>(type);
typeName = strdup(Shiboken::ObjectType::getOriginalName(objType));
} else {