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>2011-02-15 16:38:21 -0200
commita7cebb5917f4afb2287d6abc076318001bde8677 (patch)
tree2f983cf0885afee6e2c0a37b00d8d06e43bfe027
parent0ad9c484dff7a3985f733d61ef0d47e7e34ac69b (diff)
downloadpyside-a7cebb5917f4afb2287d6abc076318001bde8677.tar.gz
pyside-a7cebb5917f4afb2287d6abc076318001bde8677.tar.xz
pyside-a7cebb5917f4afb2287d6abc076318001bde8677.zip
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 7a2c8ae..3fc8b8e 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 {